|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Messages
A set of localized message strings. This is somewhat like a ResourceBundle
,
but with more flexibility about where the messages come from. In addition, it includes methods
similar to MessageFormat
for treating the messages as patterns.
Method Summary | |
---|---|
boolean |
containsMessage(java.lang.String key)
Returns true if the given key is associated with a message, false otherwise. |
java.lang.String |
format(java.lang.String key,
java.lang.Object argument)
Convienience method for invoking format(String, Object[]) . |
java.lang.String |
format(java.lang.String key,
java.lang.Object[] arguments)
Formats a string, using MessageFormat.format(java.lang.String, java.lang.Object[]) . |
java.lang.String |
format(java.lang.String key,
java.lang.Object argument1,
java.lang.Object argument2)
Convienience method for invoking format(String, Object[]) . |
java.lang.String |
format(java.lang.String key,
java.lang.Object argument1,
java.lang.Object argument2,
java.lang.Object argument3)
Convienience method for invoking format(String, Object[]) . |
java.lang.String |
getMessage(java.lang.String key)
Searches for a localized string with the given key. |
Method Detail |
---|
boolean containsMessage(java.lang.String key)
java.lang.String getMessage(java.lang.String key)
java.lang.String format(java.lang.String key, java.lang.Object[] arguments)
MessageFormat.format(java.lang.String, java.lang.Object[])
.
key
- the key used to obtain a localized pattern using getMessage(String)
arguments
- passed to the formatterjava.lang.String format(java.lang.String key, java.lang.Object argument)
format(String, Object[])
.
java.lang.String format(java.lang.String key, java.lang.Object argument1, java.lang.Object argument2)
format(String, Object[])
.
java.lang.String format(java.lang.String key, java.lang.Object argument1, java.lang.Object argument2, java.lang.Object argument3)
format(String, Object[])
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |