public enum DataType extends java.lang.Enum<DataType>
Enum Constant and Description |
---|
BOOL
The Boolean field type.
|
DATE
The Date field type.
|
INTEGER
The Integer field type.
|
REAL
The Real field type.
|
STRING
The String field type.
|
UNKNOWN
Unknown field type.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getClassForType()
Return the class associated with this data type.
|
int |
getTypeCode()
Return the low-level representation of this data type.
|
static DataType |
valueOf(int typeCode)
Return the data type that corresponds to the given integer.
|
static DataType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataType UNKNOWN
This should never occur.
public static final DataType BOOL
public static final DataType INTEGER
public static final DataType REAL
public static final DataType STRING
public static final DataType DATE
public static DataType[] values()
for (DataType c : DataType.values()) System.out.println(c);
public static DataType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.Class<?> getClassForType()
public int getTypeCode()
public static DataType valueOf(int typeCode)
Copyright © 2012 SAS Institute Inc. All Rights Reserved.