org.apache.empire.commons
Class OptionEntry
java.lang.Object
org.apache.empire.commons.OptionEntry
public class OptionEntry
- extends java.lang.Object
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.
Constructor Summary |
OptionEntry(java.lang.Object value,
java.lang.String text)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OptionEntry
public OptionEntry(java.lang.Object value,
java.lang.String text)
getValue
public java.lang.Object getValue()
getValueString
public java.lang.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 java.lang.String getText()
setText
public void setText(java.lang.String text)
Copyright © 2008-2011 Apache Software Foundation. All Rights Reserved.