T
- Type of the valuespublic interface Enumerator<T>
Such values usually depends on environment (directory listing, DB table, ...).
Modifier and Type | Method and Description |
---|---|
default Map<String,Object> |
getConfiguration()
Get the configuration of this enumerator
|
I18nizableText |
getEntry(T value)
Retrieves a single label from a value.
|
Map<T,I18nizableText> |
getTypedEntries()
Provides the enumerated values with their optional label.
|
I18nizableText getEntry(T value) throws Exception
value
- the value.null
if not found.Exception
- if an error occurs.Map<T,I18nizableText> getTypedEntries() throws Exception
Exception
- if an error occurs.
TODO NEWATTRIBUTEAPI: rename this method when Enumerator
will be removeddefault Map<String,Object> getConfiguration()