|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.xmlui.wing.Message
public class Message
This class represents an i18n message, which is composed of three parts: a catalogue, a key, and a set of dictionary parameters. The catalogue tells the translator where to find the key, the key tells the transformer which specific text should be used, and the parameters are provided for non-translated data to be inserted into the resulting string. This class is designed in such a way that the Message object can be made static by any class that needs to use it. If dicionary parameters are used then a new instance is created specifically for those parameters, this prevents concurrent threads from overwriting each other's parameters.
| Field Summary | |
|---|---|
protected String |
catalogue
What catalogue this key is to be found in. |
protected String |
key
The key to look up in the catalogue. |
| Constructor Summary | |
|---|---|
Message(String catalogue,
String key)
Create a new translatable element. |
|
| Method Summary | |
|---|---|
String |
getCatalogue()
|
Object[] |
getDictionaryParameters()
Return any dictionary parameters that are used by this translation message. |
String |
getKey()
|
Message |
parameterize(Object... dictionaryParameters)
Parameterize this translate key by specifying dictionary parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final String catalogue
protected final String key
| Constructor Detail |
|---|
public Message(String catalogue,
String key)
catalogue - The catalogue where this key can be found.key - The key to look up in the catalogue.| Method Detail |
|---|
public String getCatalogue()
public String getKey()
public Message parameterize(Object... dictionaryParameters)
dictionaryParameters - The dictionary parameterspublic Object[] getDictionaryParameters()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||