Package | Description |
---|---|
org.crosswire.common.options |
Classes to represent command line options.
|
Modifier and Type | Field and Description |
---|---|
private DataType |
Option.dataType |
Modifier and Type | Method and Description |
---|---|
static DataType |
DataType.fromString(String name)
Find a DataType by name
|
DataType |
Option.getDataType() |
static DataType |
DataType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataType[] |
DataType.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.
|