Package org.apache.empire.commons
Class OptionEntry
java.lang.Object
org.apache.empire.commons.OptionEntry
- All Implemented Interfaces:
Serializable,Cloneable
This class defines one possible value of a field and it's description
This class is used by the Options class to implement a set of options where the option value us used as the key for the set.
The text should only be used for display purposes e.g. to display a drop-down in a user interface.
This class is used by the Options class to implement a set of options where the option value us used as the key for the set.
The text should only be used for display purposes e.g. to display a drop-down in a user interface.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOptionEntry(Object value, String text) OptionEntry(Object value, String text, boolean active) -
Method Summary
-
Constructor Details
-
OptionEntry
-
OptionEntry
-
-
Method Details
-
getValue
-
valueEquals
-
clone
-
getValueString
Gets the value as string- Returns:
- the string representation of the value or an empty string if the value is
null
-
getText
-
setText
-
isActive
public boolean isActive() -
setActive
public void setActive(boolean active) -
toString
-