|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.i18n.Messages
public class Messages
Field Summary | |
---|---|
static String |
DEFAULT_MESSAGE_BUNDLE_KEY
|
Constructor Summary | |
---|---|
Messages()
|
Method Summary | |
---|---|
static void |
addMessageBundle(String messageBundleKey,
MessageBundle messageBundle)
To add a new Message Bundle to the MessageBundle list. |
static String |
getMessage(String key)
Get a message from resource.properties from the package of the given object. |
static String |
getMessage(String key,
String arg0)
Get a message from resource.properties from the package of the given object. |
static String |
getMessage(String key,
String[] args)
Get a message from resource.properties from the package of the given object. |
static String |
getMessage(String key,
String arg0,
String arg1)
Get a message from resource.properties from the package of the given object. |
static String |
getMessage(String key,
String arg0,
String arg1,
String arg2)
Get a message from resource.properties from the package of the given object. |
static String |
getMessage(String key,
String arg0,
String arg1,
String arg2,
String arg3)
Get a message from resource.properties from the package of the given object. |
static String |
getMessage(String key,
String arg0,
String arg1,
String arg2,
String arg3,
String arg4)
Get a message from resource.properties from the package of the given object. |
static MessageBundle |
getMessageBundle()
|
static MessageBundle |
getMessageBundle(String messageBundleKey)
|
static String |
getMessageFromBundle(String messageBundleKey,
String key)
Get a message from resource.properties from the package of the given object. |
static String |
getMessageFromBundle(String messageBundleKey,
String key,
String arg0)
Get a message from resource.properties from the package of the given object. |
static String |
getMessageFromBundle(String messageBundleKey,
String key,
String arg0,
String arg1)
Get a message from resource.properties from the package of the given object. |
static String |
getMessageFromBundle(String messageBundleKey,
String key,
String arg0,
String arg1,
String arg2)
Get a message from resource.properties from the package of the given object. |
static String |
getMessageFromBundle(String messageBundleKey,
String key,
String arg0,
String arg1,
String arg2,
String arg3)
Get a message from resource.properties from the package of the given object. |
static String |
getMessageFromBundle(String messageBundleKey,
String key,
String arg0,
String arg1,
String arg2,
String arg3,
String arg4)
Get a message from resource.properties from the package of the given object. |
static ResourceBundle |
getResourceBundle()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_MESSAGE_BUNDLE_KEY
Constructor Detail |
---|
public Messages()
Method Detail |
---|
public static void addMessageBundle(String messageBundleKey, MessageBundle messageBundle)
messageBundleKey
- The key which will be used to refer to this message bundle later.messageBundle
- The message bundle.public static String getMessage(String key) throws MissingResourceException
key
- The resource key
MissingResourceException
public static String getMessage(String key, String arg0) throws MissingResourceException
key
- The resource keyarg0
- The argument to place in variable {0}
MissingResourceException
public static String getMessage(String key, String arg0, String arg1) throws MissingResourceException
key
- The resource keyarg0
- The argument to place in variable {0}arg1
- The argument to place in variable {1}
MissingResourceException
public static String getMessage(String key, String arg0, String arg1, String arg2) throws MissingResourceException
key
- The resource keyarg0
- The argument to place in variable {0}arg1
- The argument to place in variable {1}arg2
- The argument to place in variable {2}
MissingResourceException
public static String getMessage(String key, String arg0, String arg1, String arg2, String arg3) throws MissingResourceException
key
- The resource keyarg0
- The argument to place in variable {0}arg1
- The argument to place in variable {1}arg2
- The argument to place in variable {2}arg3
- The argument to place in variable {3}
MissingResourceException
public static String getMessage(String key, String arg0, String arg1, String arg2, String arg3, String arg4) throws MissingResourceException
key
- The resource keyarg0
- The argument to place in variable {0}arg1
- The argument to place in variable {1}arg2
- The argument to place in variable {2}arg3
- The argument to place in variable {3}arg4
- The argument to place in variable {4}
MissingResourceException
public static String getMessage(String key, String[] args) throws MissingResourceException
key
- The resource keyargs
- An array of objects to place in corresponding variables
MissingResourceException
public static ResourceBundle getResourceBundle()
public static MessageBundle getMessageBundle()
public static MessageBundle getMessageBundle(String messageBundleKey)
public static String getMessageFromBundle(String messageBundleKey, String key) throws MissingResourceException, Exception
messageBundleKey
- The key for getting the correct message bundle.key
- The resource key
MissingResourceException
Exception
public static String getMessageFromBundle(String messageBundleKey, String key, String arg0) throws MissingResourceException, Exception
messageBundleKey
- The key for getting the correct message bundle.key
- The resource keyarg0
- The argument to place in variable {0}
MissingResourceException
Exception
public static String getMessageFromBundle(String messageBundleKey, String key, String arg0, String arg1) throws MissingResourceException, Exception
messageBundleKey
- The key for getting the correct message bundle.key
- The resource keyarg0
- The argument to place in variable {0}arg1
- The argument to place in variable {1}
MissingResourceException
Exception
public static String getMessageFromBundle(String messageBundleKey, String key, String arg0, String arg1, String arg2) throws MissingResourceException, Exception
messageBundleKey
- The key for getting the correct message bundle.key
- The resource keyarg0
- The argument to place in variable {0}arg1
- The argument to place in variable {1}arg2
- The argument to place in variable {2}
MissingResourceException
Exception
public static String getMessageFromBundle(String messageBundleKey, String key, String arg0, String arg1, String arg2, String arg3) throws MissingResourceException, Exception
messageBundleKey
- The key for getting the correct message bundle.key
- The resource keyarg0
- The argument to place in variable {0}arg1
- The argument to place in variable {1}arg2
- The argument to place in variable {2}arg3
- The argument to place in variable {3}
MissingResourceException
Exception
public static String getMessageFromBundle(String messageBundleKey, String key, String arg0, String arg1, String arg2, String arg3, String arg4) throws MissingResourceException, Exception
messageBundleKey
- The key for getting the correct message bundle.key
- The resource keyarg0
- The argument to place in variable {0}arg1
- The argument to place in variable {1}arg2
- The argument to place in variable {2}arg3
- The argument to place in variable {3}arg4
- The argument to place in variable {4}
MissingResourceException
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |