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.
-
-
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()
-
-
-
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()
-
-