Class StringOptions
java.lang.Object
eu.svjatoslav.commons.cli_helper.parameter_parser.Option<List<String>,StringOptions>
eu.svjatoslav.commons.cli_helper.parameter_parser.parameter.StringOptions
This class represents commandline option which accepts one or more parameters
which are strings.
-
Field Summary
Fields inherited from class eu.svjatoslav.commons.cli_helper.parameter_parser.Option
description, mandatory, parameters
-
Constructor Summary
-
Method Summary
Methods inherited from class eu.svjatoslav.commons.cli_helper.parameter_parser.Option
addAliases, addParameter, getAliasesAsString, getHelp, isMandatory, isPresent, matchesAlias, noMoreArguments, setMandatory, setPresent
-
Constructor Details
-
StringOptions
-
-
Method Details
-
describeFormat
- Specified by:
describeFormat
in classOption<List<String>,
StringOptions> - Returns:
- Single line parameter type description. For example: "file", "date", "integer", "regular expression", etc..
Note: for argument purpose description there is
Option.description
-
getValue
Description copied from class:Option
Returns the value of the object.- Specified by:
getValue
in classOption<List<String>,
StringOptions> - Returns:
- the value of the object.
-
isValid
- Specified by:
isValid
in classOption<List<String>,
StringOptions> - Parameters:
value
- value to validate- Returns:
true
if value is correct,false
otherwise.
-