Package org.ametys.runtime.parameter
Class StaticEnumerator
java.lang.Object
org.ametys.runtime.parameter.StaticEnumerator
- All Implemented Interfaces:
Enumerator
Deprecated.
This implementation enumerate the static configured elements
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(I18nizableText label, String value) Deprecated.Adds a new entry.Deprecated.Provides the enumerated values with their optional label.Deprecated.Retrieves a single label from a value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.runtime.parameter.Enumerator
getConfiguration
-
Constructor Details
-
StaticEnumerator
public StaticEnumerator()Deprecated.
-
-
Method Details
-
add
Deprecated.Adds a new entry.- Parameters:
label- the entry label.value- the entry value.
-
getEntry
Deprecated.Description copied from interface:EnumeratorRetrieves a single label from a value.- Specified by:
getEntryin interfaceEnumerator- Parameters:
value- the value.- Returns:
- the label or
nullif not found.
-
getEntries
Deprecated.Description copied from interface:EnumeratorProvides the enumerated values with their optional label.- Specified by:
getEntriesin interfaceEnumerator- Returns:
- the enumerated values and their label.
-
StaticEnumeratorinstead