org.apache.empire.commons
Class OptionEntry
java.lang.Object
org.apache.empire.commons.OptionEntry
- All Implemented Interfaces:
- Serializable
public class OptionEntry
- extends Object
- implements Serializable
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.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OptionEntry
public OptionEntry(Object value,
String text)
getValue
public Object getValue()
getValueString
public String getValueString()
- Gets the value as string
- Returns:
- the string representation of the value or an empty string if the value is
null
getText
public String getText()
setText
public void setText(String text)
Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.