Package | Description |
---|---|
org.crosswire.common.options |
Classes to represent command line options.
|
Modifier and Type | Field and Description |
---|---|
private ArgumentType |
Option.argumentType |
Modifier and Type | Method and Description |
---|---|
static ArgumentType |
ArgumentType.fromString(String name)
Lookup method to find an ArgumentType by name
|
ArgumentType |
Option.getArgumentType()
The ArgumentType indicates this Option's ability to use a following
argument.
|
static ArgumentType |
ArgumentType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ArgumentType[] |
ArgumentType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
Option(String description,
ArgumentType argumentType,
DataType dataType,
char shortName)
Create an Option with a short name, having no default value.
|
Option(String description,
ArgumentType argumentType,
DataType dataType,
char shortName,
String longName)
Create an Option with both short and long names, having no default value.
|
Option(String description,
ArgumentType argumentType,
DataType dataType,
char shortName,
String longName,
String defaultValue)
Create an Option with both short and long names of a given DataType
having a default value.
|
Option(String description,
ArgumentType argumentType,
DataType dataType,
String longName)
Create an Option with a long name, having no default value.
|