public class StaticEnumerator extends Object implements Enumerator
| Modifier and Type | Field and Description |
|---|---|
private Map<Object,I18nizableText> |
_entries |
| Constructor and Description |
|---|
StaticEnumerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(I18nizableText label,
String value)
Adds a new entry.
|
Map<Object,I18nizableText> |
getEntries()
Provides the enumerated values with their optional label.
|
I18nizableText |
getEntry(String value)
Retrieves a single label from a value.
|
private Map<Object,I18nizableText> _entries
public StaticEnumerator()
public void add(I18nizableText label, String value)
label - the entry label.value - the entry value.public I18nizableText getEntry(String value)
EnumeratorgetEntry in interface Enumeratorvalue - the value.null if not found.public Map<Object,I18nizableText> getEntries()
EnumeratorgetEntries in interface Enumerator