Class DirectoryOptions
java.lang.Object
eu.svjatoslav.commons.cli_helper.parameter_parser.Option<List<File>,DirectoryOptions>
eu.svjatoslav.commons.cli_helper.parameter_parser.parameter.DirectoryOptions
DirectoryOptions class represents a command-line option for one or more directories.
-
Field Summary
Fields inherited from class eu.svjatoslav.commons.cli_helper.parameter_parser.Option
description, mandatory, parameters
-
Constructor Summary
ConstructorDescriptionDirectoryOptions
(String description) Creates a new DirectoryOptions object with the given description. -
Method Summary
Modifier and TypeMethodDescriptionReturns a string describing the format of the option.getValue()
Returns the value of the option as a list of File objects.boolean
Methods inherited from class eu.svjatoslav.commons.cli_helper.parameter_parser.Option
addAliases, addParameter, getAliasesAsString, getHelp, isMandatory, isPresent, matchesAlias, noMoreArguments, setMandatory, setPresent
-
Constructor Details
-
DirectoryOptions
Creates a new DirectoryOptions object with the given description.- Parameters:
description
- The description of the directory options.
-
-
Method Details
-
describeFormat
Returns a string describing the format of the option.- Specified by:
describeFormat
in classOption<List<File>,
DirectoryOptions> - Returns:
- A string describing the format of the option.
-
getValue
Returns the value of the option as a list of File objects.- Specified by:
getValue
in classOption<List<File>,
DirectoryOptions> - Returns:
- The value of the option as a list of File objects.
-
mustExist
-
mustNotExist
-
isValid
- Specified by:
isValid
in classOption<List<File>,
DirectoryOptions> - Parameters:
value
- value to validate- Returns:
true
if value is correct,false
otherwise.
-