|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.common.options.DataType
public abstract class DataType
A DataType provides the ability to marshal a String value to an object.
for license details.
The copyright to this program is held by it's authors.
,
Serialized FormField Summary | |
---|---|
static DataType |
BOOLEAN
An boolean argument that allows various values for 'true'. |
static DataType |
INTEGER
An integer argument. |
private String |
name
The name of the DataType |
private static int |
nextObj
|
private int |
obj
|
private static long |
serialVersionUID
Serialization ID |
static DataType |
STRING
A string argument. |
private static DataType[] |
VALUES
|
Constructor Summary | |
---|---|
protected |
DataType(String name)
|
Method Summary | |
---|---|
abstract Object |
convertFromString(String input)
Convert a String to an Arguments expected value. |
static DataType |
fromInteger(int i)
Lookup method to convert from an integer |
static DataType |
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 DataType STRING
public static final DataType INTEGER
public static final DataType BOOLEAN
private String name
private static int nextObj
private final int obj
private static final DataType[] VALUES
private static final long serialVersionUID
Constructor Detail |
---|
protected DataType(String name)
name
- The name of the DataTypeMethod Detail |
---|
public abstract Object convertFromString(String input)
public static DataType fromString(String name)
public static DataType 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 |