public class Translation
extends java.lang.Object
Constructor and Description |
---|
Translation(java.lang.String language)
Constructs a Translation with the passed language converted to lower-case
and an empty value.
|
Translation(java.lang.String language,
java.lang.String value)
Constructs a Translation with the passed language code converted to lower-case
and a translated string value.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLanguage()
Returns the lower-case language code for this translation.
|
java.lang.String |
getValue()
Returns the value for this translation.
|
void |
setLanguage(java.lang.String language)
Sets the language code for this translation.
|
void |
setValue(java.lang.String value)
Sets the value for this translation.
|
public Translation(java.lang.String language, java.lang.String value)
language
- the language codevalue
- the translated stringpublic Translation(java.lang.String language)
language
- the language codepublic java.lang.String getLanguage()
public java.lang.String getValue()
public void setLanguage(java.lang.String language)
the
- language codepublic void setValue(java.lang.String value)
the
- translated value