de.qfs.lib.option
Interface ConfigurableOption
- All Known Implementing Classes:
- FileOption, IntegerOption, KeyOption, BooleanOption, StringOption, ChoiceOption
- public interface ConfigurableOption
Options that implement this interface will be saved and restored via the
Configuration
mechanism, when they
are contained in an OptionSet
that is registered with the
Configuration. Implementing ConfigurableOption guarantees that the
Option's value can be converted into and read back from a String, where the
empty String represents the null value, since null values are not allowed
in a Properties
object.
- Version:
- $Revision: 1.6 $
- Author:
- Gregor Schmid
getConfigurableValue
public java.lang.String getConfigurableValue()
- Get the Option's value as a String. A null value will be converted
into the empty String for storage in a Properties object.
- Returns:
- The Option's value as a String.
setConfigurableValue
public void setConfigurableValue(java.lang.String value)
- Set the Option's value from a String.
- Parameters:
value
- The value to set. Guaranteed to be non-null.