|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implementations of this interface provide the mechanism for accessing text strings for a set of messages with keys. Normally, these strings are stored in a messages file.
Method Summary | |
java.lang.String |
getMessage(java.lang.String key)
Gets a message with no inserts from the catalog. |
java.lang.String |
getMessage(java.lang.String key,
java.lang.Object param)
Gets a message with one insert from the catalog. |
java.lang.String |
getMessage(java.lang.String key,
java.lang.Object[] params)
Gets a message with an array of inserts from the catalog. |
java.lang.String |
getMessage(java.lang.String key,
java.lang.Object param1,
java.lang.Object param2)
Gets a message with two inserts from the catalog. |
java.lang.String |
getMessageCatalog()
Gets the message catalog name. |
void |
setMessageCatalog(java.lang.String catalogName)
Sets the message catalog name for this catalog. |
Method Detail |
public java.lang.String getMessage(java.lang.String key)
key
- The key name of this messagepublic java.lang.String getMessage(java.lang.String key, java.lang.Object param)
key
- The key name of this messageobj
- An element to be inserted into the messagepublic java.lang.String getMessage(java.lang.String key, java.lang.Object param1, java.lang.Object param2)
key
- The key name of this messageobj1
- An element to be inserted into the messageobj2
- An element to be inserted into the messagepublic java.lang.String getMessage(java.lang.String key, java.lang.Object[] params)
key
- The key name of this messageobjects
- An array of elements to be inserted into the messagepublic java.lang.String getMessageCatalog()
public void setMessageCatalog(java.lang.String catalogName)
catalogName
- The catalog name which contains the messages. If
null
, the current value is not changed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |