public class TranslatedValue extends Object
Modifier and Type | Field and Description |
---|---|
private String |
_key |
private Map<String,String> |
_translations |
Constructor and Description |
---|
TranslatedValue(String key,
Map<String,String> translations)
Construct a TranslatedValue
|
Modifier and Type | Method and Description |
---|---|
void |
addTranlation(String language,
String value)
Add translation
|
String |
getKey()
Get the key of a message
|
Map<String,String> |
getTranslations()
Get translations of message according to the language
|
public TranslatedValue(String key, Map<String,String> translations)
key
- The message keytranslations
- Translations of massagepublic Map<String,String> getTranslations()
public void addTranlation(String language, String value)
language
- The language a messagevalue
- The message