org.crosswire.common.options
Class ArgumentType

java.lang.Object
  extended by org.crosswire.common.options.ArgumentType
All Implemented Interfaces:
Serializable

public class ArgumentType
extends Object
implements Serializable

An ArgumentType indicates whether and/or how an Option is followed by an argument.

Author:
DM Smith [dmsmith555 at yahoo dot com]
See Also:
for license details.
The copyright to this program is held by it's authors.
, Serialized Form

Field 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

NO_ARGUMENT

public static final ArgumentType NO_ARGUMENT
The option is not followed by an argument.


REQUIRED_ARGUMENT

public static final ArgumentType REQUIRED_ARGUMENT
The option is followed by an argument.


OPTIONAL_ARGUMENT

public static final ArgumentType OPTIONAL_ARGUMENT
The option may be followed by an argument.


name

private String name
The name of the DataType


nextObj

private static int nextObj

obj

private final int obj

VALUES

private static final ArgumentType[] VALUES

serialVersionUID

private static final long serialVersionUID
Serialization ID

See Also:
Constant Field Values
Constructor Detail

ArgumentType

protected ArgumentType(String name)
Parameters:
name - The name of the DataType
Method Detail

fromString

public static ArgumentType fromString(String name)
Lookup method to convert from a String


fromInteger

public static ArgumentType fromInteger(int i)
Lookup method to convert from an integer


toString

public String toString()
Overrides:
toString in class Object

readResolve

Object readResolve()

Copyright ยจ 2003-2007