@XStreamConverter(value=ValueConverter.class) public final class Value extends Object implements Cloneable, Serializable
Value can store multiple Texts for different states.
It can also provide single Text for any specific state if it exists.LanguageManager,
Language,
Record,
Text,
Serialized Form| Constructor and Description |
|---|
Value()
Contructs new
Value. |
Value(Locale locale)
Contructs new
Value. |
Value(Locale locale,
List<Text> texts)
Contructs new
Value. |
Value(Locale locale,
Text... texts)
Contructs new
Value. |
| Modifier and Type | Method and Description |
|---|---|
void |
addText(Text text)
|
void |
clearTexts()
|
Locale |
getLocale()
|
Text |
getText()
Returns
Text for default state. |
Text |
getText(String state)
Returns
Text for the specified state. |
List<Text> |
getTexts()
|
void |
removeText(Text text)
|
void |
setLocale(Locale locale)
|
void |
setTexts(List<Text> texts)
|
int |
textsCount()
|
String |
toString() |
public Value()
public void clearTexts()
@Nullable public Text getText()
Text for default state.Text for default stateCopyright © 2020. All rights reserved.