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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfiguration
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)
Enumerator
getEntry
in interface Enumerator
value
- the value.null
if not found.public Map<Object,I18nizableText> getEntries()
Enumerator
getEntries
in interface Enumerator