class EnumeratorBasedEnumeratedValues extends Object implements EnumeratedValues
Modifier and Type | Class and Description |
---|---|
(package private) static class |
EnumeratorBasedEnumeratedValues.EnumeratorBasedRestrictedValues |
EnumeratedValues.RestrictedValues
Modifier and Type | Field and Description |
---|---|
private String |
_criterionDefinitionId |
private Enumerator |
_enumerator |
Constructor and Description |
---|
EnumeratorBasedEnumeratedValues(Enumerator enumerator,
String criterionDefinitionId) |
Modifier and Type | Method and Description |
---|---|
Map<Object,I18nizableText> |
getAllValues()
Gets all the values (with their label)
|
EnumeratedValues.RestrictedValues |
getRestrictedValuesFor(List<Object> objs)
Gets the
EnumeratedValues.RestrictedValues object
The implementation must decide whether or not the given objs must be validated among all values , if they must be converted, etc. |
private Enumerator _enumerator
private String _criterionDefinitionId
EnumeratorBasedEnumeratedValues(Enumerator enumerator, String criterionDefinitionId)
public Map<Object,I18nizableText> getAllValues()
EnumeratedValues
getAllValues
in interface EnumeratedValues
public EnumeratedValues.RestrictedValues getRestrictedValuesFor(List<Object> objs)
EnumeratedValues
EnumeratedValues.RestrictedValues
object
all values
, if they must be converted, etc.getRestrictedValuesFor
in interface EnumeratedValues
objs
- The desired objectsEnumeratedValues.RestrictedValues