public abstract class AbstractBooleanOption extends CommandLineOption<java.lang.Boolean>
Constructor and Description |
---|
AbstractBooleanOption(java.lang.String option,
java.lang.String helpText) |
Modifier and Type | Method and Description |
---|---|
void |
checkValue()
Performs additional checks on the entered option value (i.e. file existence etc..)
|
java.lang.Boolean |
getValue()
Returns the parsed value of this option.
|
protected void |
parseValue(java.lang.String value)
Parses and stores the given value from the command-line to this option.
|
void |
setDefaultValue(boolean value) |
equals, getArgumentName, getDefaultValue, getEnvVariableName, getEnvVariableValue, getHelpText, getOption, getOptionAndArgument, getStringValue, hasArgument, hashCode, isMandatory, isPrintHelp, isPrintSyntax, isSecret, isValueTakenFromEnvVariable, parseDefaultValue, parseValue, setDefaultValue, setEnvVariableName, setFound, setHelpText, setMandatory, setPrintHelp, setPrintSyntax, setSecret, setStringValue, toDumpString, toString, wasFound
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toString
public AbstractBooleanOption(java.lang.String option, java.lang.String helpText)
public final java.lang.Boolean getValue()
CommandLineOption
getValue
in class CommandLineOption<java.lang.Boolean>
public final void setDefaultValue(boolean value)
protected final void parseValue(java.lang.String value) throws java.lang.Exception
CommandLineOption
parseValue
in class CommandLineOption<java.lang.Boolean>
java.lang.Exception
public final void checkValue() throws java.lang.Exception
CommandLineOption
checkValue
in class CommandLineOption<java.lang.Boolean>
java.lang.Exception
Copyright © 2014 EsprIT-Systems. All Rights Reserved.