Package org.kohsuke.args4j.spi
Class FileOptionHandler
- Author:
- Kohsuke Kawaguchi
-
Field Summary
Fields inherited from class org.kohsuke.args4j.spi.OptionHandler
option, owner, setter
-
Constructor Summary
ConstructorsConstructorDescriptionFileOptionHandler
(CmdLineParser parser, OptionDef option, Setter<? super File> setter) -
Method Summary
Modifier and TypeMethodDescriptionGets the default meta variable name used to print the usage screen.protected File
Parses a string to a real value of Type <T>.Methods inherited from class org.kohsuke.args4j.spi.OneArgumentOptionHandler
parseArguments
Methods inherited from class org.kohsuke.args4j.spi.OptionHandler
getMetaVariable, getNameAndMeta, getNameAndMeta, print, printDefaultValue
-
Constructor Details
-
FileOptionHandler
-
-
Method Details
-
parse
Description copied from class:OneArgumentOptionHandler
Parses a string to a real value of Type <T>.- Specified by:
parse
in classOneArgumentOptionHandler<File>
- Parameters:
argument
- String value to parse- Returns:
- the parsed value
- Throws:
CmdLineException
- if the parsing encounters a failure that should be reported to the user.
-
getDefaultMetaVariable
Description copied from class:OptionHandler
Gets 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:
getDefaultMetaVariable
in classOneArgumentOptionHandler<File>
- Returns:
null
to hide a meta variable.
-