protected class Options.StringOptionDef extends Options.OptionDef
mDefaultValues, mNumValuesNeeded
Constructor and Description |
---|
StringOptionDef(String name,
String desc)
Construct an string option.
|
StringOptionDef(String name,
String[] defValues,
String desc)
Construct an string option.
|
StringOptionDef(String name,
String defValue,
String desc)
Construct an string option.
|
getBigDecimal, getBoolean, getDate, getDefaultValues, getDesc, getInteger, getIthDefaultAsString, getName, getNumValuesNeeded, getString, getStrings, isRequiredOption, toString, validateOption
public StringOptionDef(String name, String defValue, String desc)
name
- The name of the option. The name should include
the leading "-" (i.e. -account).defValue
- The default value to use if the option does not
appear on the command line.desc
- The description of the option.public StringOptionDef(String name, String[] defValues, String desc)
name
- The name of the option. The name should include
the leading "-" (i.e. -account).defValue
- The default values to use if the option does not
appear on the command line.desc
- The description of the option.public StringOptionDef(String name, String desc)
parse
method will
throw an exception if the option does not appear on the command
line.
name
- The name of the option. The name should include
the leading "-" (i.e. -account).desc
- The description of the option.Copyright © 2003, 2023, Oracle and/or its affiliates.