|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttemmental.TemplateMessages
public class TemplateMessages
Wrapper to ResourceBundle or Properties. It is used for internationalization. Instances are created on Template constructors calls.
Method Summary | |
---|---|
boolean |
containsKey(java.lang.String key)
Tests if the specified key is known in messages. |
java.lang.String |
format(java.lang.String key,
java.util.List<java.lang.Object> parameters)
Format the message with the specified key in messages with the specified parameters |
java.lang.String |
getString(java.lang.String key)
Searches the message with the specified key in messages. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean containsKey(java.lang.String key)
key
- possible key
true
if and only if the specified object is a key in this messages; false
otherwise.public java.lang.String getString(java.lang.String key)
null
.
key
- the message key
public java.lang.String format(java.lang.String key, java.util.List<java.lang.Object> parameters)
key
- the message keyparameters
- the parameters
String.format(String, Object...)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |