public class PathOptionHandler extends OneArgumentOptionHandler<java.nio.file.Path>
Path
.option, owner, setter
Constructor and Description |
---|
PathOptionHandler(CmdLineParser parser,
OptionDef option,
Setter<? super java.nio.file.Path> setter) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDefaultMetaVariable()
Gets the default meta variable name used to print the usage screen.
|
protected java.nio.file.Path |
parse(java.lang.String argument)
Parses a string to a real value of Type <T>.
|
parseArguments
getMetaVariable, getNameAndMeta, getNameAndMeta, print, printDefaultValue
public PathOptionHandler(CmdLineParser parser, OptionDef option, Setter<? super java.nio.file.Path> setter)
protected java.nio.file.Path parse(java.lang.String argument) throws java.lang.NumberFormatException, CmdLineException
OneArgumentOptionHandler
parse
in class OneArgumentOptionHandler<java.nio.file.Path>
argument
- String value to parsejava.lang.NumberFormatException
- if parsing is not possibleCmdLineException
- if the parsing encounters a failure that should be reported to the user.public java.lang.String getDefaultMetaVariable()
OptionHandler
ResourceBundle
, if one was passed to
CmdLineParser
.getDefaultMetaVariable
in class OneArgumentOptionHandler<java.nio.file.Path>
null
to hide a meta variable.