|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.fullspan.pwkeep.resource.PwkResource
public class PwkResource
Utility class to retrieve and format messages.
| Constructor Summary | |
|---|---|
PwkResource()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
formatMessage(java.lang.String key,
java.lang.Object[] arguments)
Formats a message from messages.properties. |
static java.lang.String |
getMessage(java.lang.String key)
Gets a message from messages.properties. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PwkResource()
| Method Detail |
|---|
public static java.lang.String getMessage(java.lang.String key)
messages.properties.
key - the key for the string in the properties file
ResourceBundle.getString(String)
public static java.lang.String formatMessage(java.lang.String key,
java.lang.Object[] arguments)
messages.properties.
key - the key for the string in the properties filearguments - the arguments with which to format the message
MessageFormat.format(String, Object[])
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||