StaticEnumerator
instead@Deprecated public class StaticEnumerator extends Object implements Enumerator
Modifier and Type | Field and Description |
---|---|
private Map<Object,I18nizableText> |
_entries
Deprecated.
|
Constructor and Description |
---|
StaticEnumerator()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
add(I18nizableText label,
String value)
Deprecated.
Adds a new entry.
|
Map<Object,I18nizableText> |
getEntries()
Deprecated.
Provides the enumerated values with their optional label.
|
I18nizableText |
getEntry(String value)
Deprecated.
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