Package com.headius.options
Class BooleanOption
- java.lang.Object
-
- com.headius.options.Option<java.lang.Boolean>
-
- com.headius.options.BooleanOption
-
public class BooleanOption extends Option<java.lang.Boolean>
A Boolean-based Option. Unlike the other options, if a boolean property is specified but is blank, it is considered an "on" switch and a true value.
-
-
Constructor Summary
Constructors Constructor Description BooleanOption(java.lang.String longName, java.lang.Enum category, java.lang.Boolean defval, java.lang.String description)
BooleanOption(java.lang.String prefix, java.lang.String name, java.lang.Enum category, java.lang.Boolean defval, java.lang.String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Boolean
reloadValue()
Perform the appropriate load and conversion for the option's property.-
Methods inherited from class com.headius.options.Option
bool, bool, bool, bool, defaultValue, description, displayName, enumeration, enumeration, enumeration, enumeration, force, formatOptions, formatOptions, formatValues, formatValues, integer, integer, integer, integer, integer, integer, integer, integer, isSpecified, load, loadProperty, options, prefix, propertyName, reload, shortName, string, string, string, string, string, string, string, string, toString, type, unforce
-
-
-
-
Constructor Detail
-
BooleanOption
public BooleanOption(java.lang.String prefix, java.lang.String name, java.lang.Enum category, java.lang.Boolean defval, java.lang.String description)
-
BooleanOption
public BooleanOption(java.lang.String longName, java.lang.Enum category, java.lang.Boolean defval, java.lang.String description)
-
-
Method Detail
-
reloadValue
protected java.lang.Boolean reloadValue()
Description copied from class:Option
Perform the appropriate load and conversion for the option's property.- Specified by:
reloadValue
in classOption<java.lang.Boolean>
-
-