Package de.hsh.graja.util.cli
Class BooleanOption
- java.lang.Object
-
- de.hsh.graja.util.cli.Option<Boolean>
-
- de.hsh.graja.util.cli.BooleanOption
-
-
Constructor Summary
Constructors Constructor Description BooleanOption()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Boolean
convertImpl(OptionValue ov)
Converts a string-typed argument to the type represented by this DataType.String
getOppositeName()
void
setOppositeName(String oppositeName)
-
Methods inherited from class de.hsh.graja.util.cli.Option
getDefaultValue, getDescription, getMandatory, getMeaning, getName, getValidValues, isMandatory, setDefaultValue, setDescription, setMandatory, setMeaning, setName, setValidValues, toString
-
-
-
-
Method Detail
-
getOppositeName
public String getOppositeName()
-
setOppositeName
public void setOppositeName(String oppositeName)
-
convertImpl
protected Boolean convertImpl(OptionValue ov) throws InvalidValueException
Description copied from class:Option
Converts a string-typed argument to the type represented by this DataType. No validation against valid values will happen.- Specified by:
convertImpl
in classOption<Boolean>
- Returns:
- converted value
- Throws:
InvalidValueException
-
-