|
||||||||||
| 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 translater where to find the key, the key tells the transformer which specific text should be used, and the parameters provide for non translated data to be inserted into the resulting string. This class design such that the Message object can be made static my any class that needs to use it. If dicionary parameters are used then a new instance is created specificaly for those parameters, this prevents concurent threads from over writting parameters of each other.
| 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 were this key is to be found.key - The key to look up in the catalogue.| Method Detail |
|---|
public String getCatalogue()
public String getKey()
public Message parameterize(Object... dictionaryParameters)
object - The dictionary parameterspublic Object[] getDictionaryParameters()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||