|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.m2prototype.util.Messages
public final class Messages
Messages
provides access to human-presented text.
Text for m2prototype
may be modified in
net/sf/m2prototype/util/messages.properties
.
Design Pattern: Static Factory Method
Method Summary | |
---|---|
static java.lang.String |
getString(java.lang.String key)
Gets a String value corresponding to a particular lookup
key. |
static java.lang.String |
getString(java.lang.String key,
java.lang.Object param)
Gets a String value corresponding to a particular lookup key
and performs the appropriate substitution based on an additional param. |
static java.lang.String |
getString(java.lang.String key,
java.lang.Object[] params)
Gets a String value corresponding to a particular lookup
key and performs the appropriate substitution based on additional
params. |
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)
String
value corresponding to a particular lookup
key.
key
- The key to be used for looking up a message.
public static java.lang.String getString(java.lang.String key, java.lang.Object[] params)
String
value corresponding to a particular lookup
key and performs the appropriate substitution based on additional
params.
key
- the key to be used for looking up a message template.params
- the values to be substituted into the message template.
public static java.lang.String getString(java.lang.String key, java.lang.Object param)
String
value corresponding to a particular lookup key
and performs the appropriate substitution based on an additional param.
key
- the key to be used for looking up a message template.param
- the value to be substituted into the message template.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |