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, wasFoundconfigureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toStringpublic AbstractBooleanOption(java.lang.String option,
java.lang.String helpText)
public final java.lang.Boolean getValue()
CommandLineOptiongetValue in class CommandLineOption<java.lang.Boolean>public final void setDefaultValue(boolean value)
protected final void parseValue(java.lang.String value)
throws java.lang.Exception
CommandLineOptionparseValue in class CommandLineOption<java.lang.Boolean>java.lang.Exceptionpublic final void checkValue()
throws java.lang.Exception
CommandLineOptioncheckValue in class CommandLineOption<java.lang.Boolean>java.lang.ExceptionCopyright © 2014 EsprIT-Systems. All Rights Reserved.