|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.common.msgs.MessageLoader
Utility methods for loading messages from the OGSA-DAI message bundle.
The OGSA-DAI message bundle is assumed to be in a file
ogsadai_messages.properties
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private static DAILogger |
LOG
DAILogger object for logging in this class. |
private static DAIResourceBundle |
mBundle
The resource bundle containing the messages. |
Constructor Summary | |
private |
MessageLoader()
Private constructor - class contains only static utility methods. |
Method Summary | |
static java.lang.String |
getLocalizedMessage(MessageID key)
Get the message corresponding to the specified key. |
static java.lang.String |
getLocalizedMessage(MessageID key,
DAIUniqueID uniqueID)
Get the message corresponding to the specified key. |
static java.lang.String |
getLocalizedMessage(MessageID key,
java.lang.Object[] parameters)
Get the message corresponding to the specified key and parameters. |
static java.lang.String |
getLocalizedMessage(MessageID key,
java.lang.Object[] parameters,
DAIUniqueID uniqueID)
Get the message corresponding to the specified key and parameters. |
private static java.lang.String |
getLocalizedMessage(java.lang.String key)
Get the message corresponding to the specified key. |
private static java.lang.String |
getLocalizedMessage(java.lang.String key,
DAIUniqueID uniqueID)
Get the message corresponding to the specified key. |
private static java.lang.String |
getLocalizedMessage(java.lang.String key,
java.lang.Object[] parameters)
Get the message corresponding to the specified key and parameters. |
private static java.lang.String |
getLocalizedMessage(java.lang.String key,
java.lang.Object[] parameters,
DAIUniqueID uniqueID)
Get the message corresponding to the specified key and parameters. |
static java.lang.String |
getMessage(MessageID key)
Get the message corresponding to the specified key. |
static java.lang.String |
getMessage(MessageID key,
DAIUniqueID uniqueID)
Get the message corresponding to the specified key. |
static java.lang.String |
getMessage(MessageID key,
java.lang.Object[] parameters)
Get the message corresponding to the specified key and parameters. |
static java.lang.String |
getMessage(MessageID key,
java.lang.Object[] parameters,
DAIUniqueID uniqueID)
Get the message corresponding to the specified key and parameters. |
private static java.lang.String |
getMessage(java.lang.String key)
Get the message corresponding to the specified key. |
private static java.lang.String |
getMessage(java.lang.String key,
DAIUniqueID uniqueID)
Get the message corresponding to the specified key. |
private static java.lang.String |
getMessage(java.lang.String key,
java.lang.Object[] parameters)
Get the message corresponding to the specified key and parameters. |
private static java.lang.String |
getMessage(java.lang.String key,
java.lang.Object[] parameters,
DAIUniqueID uniqueID)
Get the message corresponding to the specified key and parameters. |
private static java.lang.String |
getString(java.lang.String key)
Get the message with the specified key or return null if the resource corresponding to the key
cannot not be found. |
static void |
registerMessageBundle(java.lang.String baseName,
java.util.Locale locale)
Registers a new resource bundle with this message loader. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private static DAILogger LOG
private static DAIResourceBundle mBundle
Constructor Detail |
private MessageLoader()
Method Detail |
private static java.lang.String getString(java.lang.String key)
null
if the resource corresponding to the key
cannot not be found.
key
- Resource key.
null
.private static java.lang.String getLocalizedMessage(java.lang.String key)
key
- The key for the message.
key
if the message
could not be located.private static java.lang.String getLocalizedMessage(java.lang.String key, DAIUniqueID uniqueID)
key
- The key for the message.uniqueID
- Unique ID for the message.
[uniqueID] key
if
the message could not be located.private static java.lang.String getLocalizedMessage(java.lang.String key, java.lang.Object[] parameters)
key
- The key for the message.parameters
- An array of values to insert into the message parameters.
key : param1 , param2 , ...
if the message could
not be located.private static java.lang.String getLocalizedMessage(java.lang.String key, java.lang.Object[] parameters, DAIUniqueID uniqueID)
key
- The key for the message.parameters
- An array of values to insert into the message parameters.uniqueID
- Unique ID for the message.
[uniqueID] key : param1 , param2 , ...
if the
message could not be located.private static java.lang.String getMessage(java.lang.String key)
key
- The key for the message.
key
private static java.lang.String getMessage(java.lang.String key, DAIUniqueID uniqueID)
key
- The key for the message.uniqueID
- Unique ID for the message.
[uniqueID] key
private static java.lang.String getMessage(java.lang.String key, java.lang.Object[] parameters)
key
- The key for the message.parameters
- An array of values to insert into the message parameters.
key : param1 , param2 , ...
private static java.lang.String getMessage(java.lang.String key, java.lang.Object[] parameters, DAIUniqueID uniqueID)
key
- The key for the message.parameters
- An array of values to insert into the message parameters.uniqueID
- Unique ID for the message.
[uniqueID] key : param1 , param2 , ...
public static java.lang.String getLocalizedMessage(MessageID key)
key
- MessageID
key for the message
public static java.lang.String getLocalizedMessage(MessageID key, DAIUniqueID uniqueID)
key
- MessageID
key for the message.uniqueID
- Unique ID for the message.
public static java.lang.String getLocalizedMessage(MessageID key, java.lang.Object[] parameters)
key
- The MessageID
key for the message.parameters
- An array of values to insert into the message parameters.
public static java.lang.String getLocalizedMessage(MessageID key, java.lang.Object[] parameters, DAIUniqueID uniqueID)
key
- The MessageID
key for the message.parameters
- An array of values to insert into the message parameters.uniqueID
- Unique ID for the message.
public static java.lang.String getMessage(MessageID key)
key
- MessageID
key for the message
key
public static java.lang.String getMessage(MessageID key, DAIUniqueID uniqueID)
key
- MessageID
key for the message.uniqueID
- Unique ID for the message.
[uniqueID] key
public static java.lang.String getMessage(MessageID key, java.lang.Object[] parameters)
key
- The MessageID
key for the message.parameters
- An array of values to insert into the message parameters.
key : param1 , param2 , ...
public static java.lang.String getMessage(MessageID key, java.lang.Object[] parameters, DAIUniqueID uniqueID)
key
- The MessageID
key for the message.parameters
- An array of values to insert into the message parameters.uniqueID
- Unique ID for the message.
[uniqueID] key : param1 , param2 , ...
public static void registerMessageBundle(java.lang.String baseName, java.util.Locale locale)
baseName
- base name of the resource bundlelocale
- the locale to use
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |