|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.common.options.ArgumentType
public class ArgumentType
An ArgumentType indicates whether and/or how an Option is followed by an argument.
for license details.
The copyright to this program is held by it's authors.
,
Serialized FormField Summary | |
---|---|
private String |
name
The name of the DataType |
private static int |
nextObj
|
static ArgumentType |
NO_ARGUMENT
The option is not followed by an argument. |
private int |
obj
|
static ArgumentType |
OPTIONAL_ARGUMENT
The option may be followed by an argument. |
static ArgumentType |
REQUIRED_ARGUMENT
The option is followed by an argument. |
private static long |
serialVersionUID
Serialization ID |
private static ArgumentType[] |
VALUES
|
Constructor Summary | |
---|---|
protected |
ArgumentType(String name)
|
Method Summary | |
---|---|
static ArgumentType |
fromInteger(int i)
Lookup method to convert from an integer |
static ArgumentType |
fromString(String name)
Lookup method to convert from a String |
(package private) Object |
readResolve()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ArgumentType NO_ARGUMENT
public static final ArgumentType REQUIRED_ARGUMENT
public static final ArgumentType OPTIONAL_ARGUMENT
private String name
private static int nextObj
private final int obj
private static final ArgumentType[] VALUES
private static final long serialVersionUID
Constructor Detail |
---|
protected ArgumentType(String name)
name
- The name of the DataTypeMethod Detail |
---|
public static ArgumentType fromString(String name)
public static ArgumentType fromInteger(int i)
public String toString()
toString
in class Object
Object readResolve()
|
Copyright ยจ 2003-2007 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |