public class UuidOptionHandler extends OneArgumentOptionHandler<UUID>
UUID.fromString(String)
option, owner, setter
Constructor and Description |
---|
UuidOptionHandler(CmdLineParser parser,
OptionDef option,
Setter<? super UUID> setter) |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultMetaVariable()
Gets the default meta variable name used to print the usage screen.
|
protected UUID |
parse(String argument)
Parses a string to a real value of Type <T>.
|
parseArguments
getMetaVariable, getNameAndMeta, getNameAndMeta, print, printDefaultValue
public UuidOptionHandler(CmdLineParser parser, OptionDef option, Setter<? super UUID> setter)
protected UUID parse(String argument) throws CmdLineException
OneArgumentOptionHandler
parse
in class OneArgumentOptionHandler<UUID>
argument
- String value to parseCmdLineException
- 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<UUID>
null
to hide a meta variable.Copyright © 2003-2016 Kohsuke Kawaguchi. All Rights Reserved.