qflib 0.98.0

de.qfs.lib.option
Interface ConfigurableOption

All Known Implementing Classes:
FileOption, IntegerOption, 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

Method Summary
 java.lang.String getConfigurableValue()
          Get the Option's value as a String.
 void setConfigurableValue(java.lang.String value)
          Set the Option's value from a String.
 

Method Detail

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.

qflib 0.98.0