public abstract class AbstractPathOption extends CommandLineOption<java.io.File>
| Constructor and Description |
|---|
AbstractPathOption(java.lang.String option,
java.lang.String argName,
java.lang.String helpText,
boolean isMandatory) |
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getValue()
Returns the parsed value of this option.
|
boolean |
isMustExist() |
protected void |
parseValue(java.lang.String value)
Parses and stores the given value from the command-line to this option.
|
void |
setMustExist(boolean isMustExist)
Tells whether the given path must exist in the filesystem
|
checkValue, 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 AbstractPathOption(java.lang.String option,
java.lang.String argName,
java.lang.String helpText,
boolean isMandatory)
public final java.io.File getValue()
CommandLineOptiongetValue in class CommandLineOption<java.io.File>protected void parseValue(java.lang.String value)
throws java.lang.Exception
CommandLineOptionparseValue in class CommandLineOption<java.io.File>java.lang.Exceptionpublic final boolean isMustExist()
public final void setMustExist(boolean isMustExist)
Copyright © 2014 EsprIT-Systems. All Rights Reserved.