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 |
---|---|
String |
getDefaultMetaVariable()
Gets the default meta variable name used to print the usage screen.
|
protected java.nio.file.Path |
parse(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(String argument) throws NumberFormatException, CmdLineException
OneArgumentOptionHandler
parse
in class OneArgumentOptionHandler<java.nio.file.Path>
argument
- String value to parseNumberFormatException
- if parsing is not possibleCmdLineException
- if the parsing encounters a failure that should be reported to the user.public String getDefaultMetaVariable()
OptionHandler
ResourceBundle
, if one was passed to
CmdLineParser
.getDefaultMetaVariable
in class OneArgumentOptionHandler<java.nio.file.Path>
null
to hide a meta variable.Copyright © 2003-2016 Kohsuke Kawaguchi. All Rights Reserved.