Package org.ametys.runtime.parameter
Class StaticEnumerator
- java.lang.Object
-
- org.ametys.runtime.parameter.StaticEnumerator
-
- All Implemented Interfaces:
Enumerator
@Deprecated public class StaticEnumerator extends Object implements Enumerator
Deprecated.UseStaticEnumerator
insteadThis implementation enumerate the static configured elements
-
-
Constructor Summary
Constructors Constructor Description StaticEnumerator()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
add(I18nizableText label, String value)
Deprecated.Adds a new entry.Map<Object,I18nizableText>
getEntries()
Deprecated.Provides the enumerated values with their optional label.I18nizableText
getEntry(String value)
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 Detail
-
StaticEnumerator
public StaticEnumerator()
Deprecated.
-
-
Method Detail
-
add
public void add(I18nizableText label, String value)
Deprecated.Adds a new entry.- Parameters:
label
- the entry label.value
- the entry value.
-
getEntry
public I18nizableText getEntry(String value)
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
public Map<Object,I18nizableText> 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.
-
-