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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(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, wait
Methods 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:Enumerator
Retrieves a single label from a value.- Specified by:
getEntry
in interfaceEnumerator
- Parameters:
value
- the value.- Returns:
- the label or
null
if not found.
-
getEntries
Deprecated.Description copied from interface:Enumerator
Provides the enumerated values with their optional label.- Specified by:
getEntries
in interfaceEnumerator
- Returns:
- the enumerated values and their label.
-
StaticEnumerator
instead