| java.lang.Object org.dspace.app.xmlui.wing.Message
Message | public class Message (Code) | | 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.
author: Scott Phillips |
Field Summary | |
final protected String | catalogue What catalogue this key is to be found in. | final protected String | key The key to look up in the catalogue. |
Constructor Summary | |
public | Message(String catalogue, String key) Create a new translatable element. |
catalogue | final protected String catalogue(Code) | | What catalogue this key is to be found in.
|
key | final protected String key(Code) | | The key to look up in the catalogue.
|
Message | public Message(String catalogue, String key)(Code) | | Create a new translatable element.
Parameters: catalogue - The catalogue were this key is to be found. Parameters: key - The key to look up in the catalogue. |
getCatalogue | public String getCatalogue()(Code) | | The catalogue this key is to be found in. |
getDictionaryParameters | public Object[] getDictionaryParameters()(Code) | | Return any dictionary parameters that are used by this
translation message.
Since this is the basic implementation it does not support
parameters we just return an empty array.
Any parameters to the catalogue key |
getKey | public String getKey()(Code) | | The key to look-up in the catalogue. |
parameterize | public Message parameterize(Object... dictionaryParameters)(Code) | | Parameterize this translate key by specifying
dictionary parameters. This will not modify the
current translate object but instead create a
cloned copy that has been parameterized.
Parameters: object - The dictionary parameters |
|
|