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.UseStaticEnumeratorinsteadThis 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 voidadd(I18nizableText label, String value)Deprecated.Adds a new entry.Map<Object,I18nizableText>getEntries()Deprecated.Provides the enumerated values with their optional label.I18nizableTextgetEntry(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:EnumeratorRetrieves a single label from a value.- Specified by:
getEntryin interfaceEnumerator- Parameters:
value- the value.- Returns:
- the label or
nullif not found.
-
getEntries
public Map<Object,I18nizableText> 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.
-
-