|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.weblab.services.iterator.messages.Messages
public abstract class Messages
This class enable to load messages from the resource bundle associated to this class canonical name.
It provides to method, one retrieving the message itself and another one using MessageFormat mechanism for substitution of parameters.
MessageFormat| Method Summary | |
|---|---|
static java.lang.String |
getString(java.lang.String key)
Lookup in the ResourceBundle for the key in parameter. |
static java.lang.String |
getString(java.lang.String key,
java.lang.Object... params)
Lookup in the ResourceBundle for the key in parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String getString(java.lang.String key)
ResourceBundle for the key in parameter. If key is not found, returns !key!
key - The key of the message in the resource file.
!key! if not found).
public static java.lang.String getString(java.lang.String key,
java.lang.Object... params)
ResourceBundle for the key in parameter. The parameters in ellipse are used through the
MessageFormat.format(String, Object...) method. If key is not found, returns '!'+key'!'+Arrays.toString(params).
key - The key of the message.params - The array used by the inner message formatter class to replace informations in the message.
'!'+key'!'+Arrays.toString(params) if not found. Using the array in
parameter to format the message.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||