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