public class AbstractDirectoryOption extends AbstractPathOption
Constructor and Description |
---|
AbstractDirectoryOption(java.lang.String option,
java.lang.String argName,
java.lang.String helpText) |
AbstractDirectoryOption(java.lang.String option,
java.lang.String argName,
java.lang.String helpText,
boolean isMandatory) |
Modifier and Type | Method and Description |
---|---|
void |
checkValue()
Performs additional checks on the entered option value (i.e. file existence etc..)
|
boolean |
isDoCreate() |
void |
setDoCreate(boolean isDoCreate)
If this flag indicates, that the directory should be auto-created if missing.
|
getValue, isMustExist, parseValue, setMustExist
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 AbstractDirectoryOption(java.lang.String option, java.lang.String argName, java.lang.String helpText)
public AbstractDirectoryOption(java.lang.String option, java.lang.String argName, java.lang.String helpText, boolean isMandatory)
public final boolean isDoCreate()
public final void setDoCreate(boolean isDoCreate)
public void checkValue() throws java.lang.Exception
CommandLineOption
checkValue
in class CommandLineOption<java.io.File>
java.lang.Exception
Copyright © 2014 EsprIT-Systems. All Rights Reserved.