|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Messages
Storage of messages - key value pairs.
Method Summary | |
---|---|
java.lang.String |
get(java.lang.String key)
Get the message from the bundle. |
java.lang.String |
get(java.lang.String key,
java.lang.Object[] args)
Replace the {n} parameters in the string. |
java.lang.String |
getBasename()
If no basename is provided this method returns DEFAULT_BASENAME. |
java.util.Locale |
getLocale()
|
java.lang.String |
getWithDefault(java.lang.String key,
java.lang.Object[] args,
java.lang.String defaultMsg)
With default value and replacement strings. |
java.lang.String |
getWithDefault(java.lang.String key,
java.lang.String defaultMsg)
You can provide a default value if the key is not found. |
java.util.Iterator |
keys()
Iterate over the keys. |
void |
reload()
Reload the messages. |
Method Detail |
---|
java.util.Locale getLocale()
java.lang.String getBasename()
java.lang.String get(java.lang.String key)
key
- the key
java.lang.String get(java.lang.String key, java.lang.Object[] args)
MessageFormat.format(String, Object...)
java.lang.String getWithDefault(java.lang.String key, java.lang.String defaultMsg)
key
- keydefaultMsg
- the default message
java.lang.String getWithDefault(java.lang.String key, java.lang.Object[] args, java.lang.String defaultMsg)
key
- keyargs
- replacement stringsdefaultMsg
- default message
java.util.Iterator keys()
void reload() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |