Class PathOptionHandler
Takes a single argument to the option and maps that to
Path.- Author:
- kmahoney
-
Field Summary
Fields inherited from class OptionHandler
option, owner, setter -
Constructor Summary
ConstructorsConstructorDescriptionPathOptionHandler(CmdLineParser parser, OptionDef option, Setter<? super Path> setter) -
Method Summary
Modifier and TypeMethodDescriptionGets the default meta variable name used to print the usage screen.protected PathParses a string to a real value of Type <T>.Methods inherited from class OneArgumentOptionHandler
parseArgumentsMethods inherited from class OptionHandler
getMetaVariable, getNameAndMeta, getNameAndMeta, print, printDefaultValue
-
Constructor Details
-
PathOptionHandler
-
-
Method Details
-
parse
Description copied from class:OneArgumentOptionHandlerParses a string to a real value of Type <T>.- Specified by:
parsein classOneArgumentOptionHandler<Path>- Parameters:
argument- String value to parse- Returns:
- the parsed value
- Throws:
NumberFormatException- if parsing is not possibleCmdLineException- if the parsing encounters a failure that should be reported to the user.
-
getDefaultMetaVariable
Description copied from class:OptionHandlerGets the default meta variable name used to print the usage screen. The value returned by this method can be a reference in theResourceBundle, if one was passed toCmdLineParser.- Overrides:
getDefaultMetaVariablein classOneArgumentOptionHandler<Path>- Returns:
nullto hide a meta variable.
-