|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Type> nl.knaw.dans.common.dbflib.Type
public enum Type
Enumeration of the field types available in an xBase database. xBase types are mapped to Java types as specified in the enumerated constant descriptions below.
Note on NUMBER and FLOAT values: In dBase III NUMBER and in dbBase IV FLOAT values are represented internally as floating point values. When parsed by Java they may have slight rounding errors.
Enum Constant Summary | |
---|---|
BINARY
A binary value (without length limitations), mapped to byte[] . |
|
CHARACTER
String values, mapped to String . |
|
DATE
Date value, mapped to java.util.Date . |
|
FLOAT
Float value, mapped to a Number subclass. |
|
GENERAL
A binary value (without length limitations), mapped to byte[] . |
|
LOGICAL
Logical, or boolean value, mapped to Boolean |
|
MEMO
A String value (without length limitations), mapped to String |
|
NUMBER
Numeric value, mapped to a Number subclass. |
|
PICTURE
A binary value (without length limitations), mapped to byte[] . |
Method Summary | |
---|---|
static Type |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Type[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Type NUMBER
Number
subclass.
public static final Type FLOAT
Number
subclass.
public static final Type CHARACTER
String
.
public static final Type LOGICAL
Boolean
public static final Type DATE
java.util.Date
. Note that in xBase the date does
not have a time component. The time related fields of java.util.Date
are therefore set to 0.
public static final Type MEMO
String
public static final Type GENERAL
byte[]
.
public static final Type PICTURE
byte[]
.
public static final Type BINARY
byte[]
.
Method Detail |
---|
public static Type[] values()
for (Type c : Type.values()) System.out.println(c);
public static Type valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |