Package org.ametys.cms.search.model
Class SystemProperty.EnumeratorDefinition
- java.lang.Object
-
- org.ametys.cms.search.model.SystemProperty.EnumeratorDefinition
-
- Enclosing interface:
- SystemProperty
public static class SystemProperty.EnumeratorDefinition extends Object
Representation of an Enumerator, used to generate an Enumerator on the fly.
-
-
Field Summary
Fields Modifier and Type Field Description private Configuration
_configuration
private Class<? extends Enumerator>
_enumeratorClass
private boolean
_isStatic
private Map<String,I18nizableText>
_staticEntries
-
Constructor Summary
Constructors Constructor Description EnumeratorDefinition(Class<? extends Enumerator> enumeratorClass, Configuration configuration)
Build a definition representing a dynamic Enumerator.EnumeratorDefinition(Map<String,I18nizableText> staticEntries)
Build a definition representing a static Enumerator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Configuration
getConfiguration()
Class<? extends Enumerator>
getEnumeratorClass()
Map<String,I18nizableText>
getStaticEntries()
boolean
isStatic()
-
-
-
Field Detail
-
_isStatic
private boolean _isStatic
-
_enumeratorClass
private Class<? extends Enumerator> _enumeratorClass
-
_configuration
private Configuration _configuration
-
_staticEntries
private Map<String,I18nizableText> _staticEntries
-
-
Constructor Detail
-
EnumeratorDefinition
public EnumeratorDefinition(Class<? extends Enumerator> enumeratorClass, Configuration configuration)
Build a definition representing a dynamic Enumerator.- Parameters:
enumeratorClass
- The enumerator class.configuration
- The enumerator configuration.
-
EnumeratorDefinition
public EnumeratorDefinition(Map<String,I18nizableText> staticEntries)
Build a definition representing a static Enumerator.- Parameters:
staticEntries
- the enumerator entries.
-
-
Method Detail
-
isStatic
public boolean isStatic()
-
getEnumeratorClass
public Class<? extends Enumerator> getEnumeratorClass()
-
getConfiguration
public Configuration getConfiguration()
-
getStaticEntries
public Map<String,I18nizableText> getStaticEntries()
-
-