Class EnumeratorBasedEnumeratedValues
- java.lang.Object
-
- org.ametys.web.frontoffice.search.metamodel.impl.EnumeratorBasedEnumeratedValues
-
- All Implemented Interfaces:
EnumeratedValues
class EnumeratorBasedEnumeratedValues extends Object implements EnumeratedValues
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
EnumeratorBasedEnumeratedValues.EnumeratorBasedRestrictedValues
-
Nested classes/interfaces inherited from interface org.ametys.web.frontoffice.search.metamodel.EnumeratedValues
EnumeratedValues.RestrictedValues
-
-
Field Summary
Fields Modifier and Type Field Description private String
_criterionDefinitionId
private Enumerator
_enumerator
-
Constructor Summary
Constructors Constructor Description EnumeratorBasedEnumeratedValues(Enumerator enumerator, String criterionDefinitionId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Object,I18nizableText>
getAllValues()
Gets all the values (with their label)EnumeratedValues.RestrictedValues
getRestrictedValuesFor(List<Object> objs)
Gets theEnumeratedValues.RestrictedValues
object
The implementation must decide whether or not the given objs must be validated amongall values
, if they must be converted, etc.
-
-
-
Field Detail
-
_enumerator
private Enumerator _enumerator
-
_criterionDefinitionId
private String _criterionDefinitionId
-
-
Constructor Detail
-
EnumeratorBasedEnumeratedValues
EnumeratorBasedEnumeratedValues(Enumerator enumerator, String criterionDefinitionId)
-
-
Method Detail
-
getAllValues
public Map<Object,I18nizableText> getAllValues()
Description copied from interface:EnumeratedValues
Gets all the values (with their label)- Specified by:
getAllValues
in interfaceEnumeratedValues
- Returns:
- all the values (with their label)
-
getRestrictedValuesFor
public EnumeratedValues.RestrictedValues getRestrictedValuesFor(List<Object> objs)
Description copied from interface:EnumeratedValues
Gets theEnumeratedValues.RestrictedValues
object
The implementation must decide whether or not the given objs must be validated amongall values
, if they must be converted, etc.- Specified by:
getRestrictedValuesFor
in interfaceEnumeratedValues
- Parameters:
objs
- The desired objects- Returns:
- the
EnumeratedValues.RestrictedValues
-
-