public abstract static class CmdLineParser.Option extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CmdLineParser.Option.BooleanOption |
static class |
CmdLineParser.Option.DoubleOption
An option that expects a floating-point value
|
static class |
CmdLineParser.Option.IntegerOption
An option that expects an integer value
|
static class |
CmdLineParser.Option.StringOption
An option that expects a string value
|
Modifier and Type | Field and Description |
---|---|
private String |
longForm |
private String |
shortForm |
private boolean |
wantsValue |
Modifier | Constructor and Description |
---|---|
protected |
Option(char shortForm,
String longForm,
boolean wantsValue) |
Modifier and Type | Method and Description |
---|---|
Object |
getValue(String arg,
Locale locale) |
String |
longForm() |
protected Object |
parseValue(String arg,
Locale locale)
Override to extract and convert an option value passed on the
command-line
|
String |
shortForm() |
boolean |
wantsValue()
Tells whether or not this option wants a value
|
private boolean wantsValue
public boolean wantsValue()
public final Object getValue(String arg, Locale locale) throws CmdLineParser.IllegalOptionValueException
protected Object parseValue(String arg, Locale locale) throws CmdLineParser.IllegalOptionValueException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses