public enum DataType extends java.lang.Enum<DataType>
Enum Constant and Description |
---|
ALSOBANK |
ALSOSEGMENT |
BANK |
CHAR8 |
CHARSTAR8 |
COMPOSITE |
DOUBLE64 |
FLOAT32 |
HOLLERIT |
INT32 |
LONG64 |
NVALUE |
SEGMENT |
SHORT16 |
TAGSEGMENT |
UCHAR8 |
UINT32 |
ULONG64 |
UNKNOWN32 |
USHORT16 |
Modifier and Type | Method and Description |
---|---|
static DataType |
getDataType(int val)
Obtain the enum from the value.
|
static java.lang.String |
getName(int val)
Obtain the name from the value.
|
int |
getValue()
Get the enum's value.
|
boolean |
isStructure()
Convenience routine to see if "this" data type is a structure (a container.)
|
java.lang.String |
toString()
Return a string which is usually the same as the name of the
enumerated value, except in the cases of ALSOSEGMENT and
ALSOBANK which return SEGMENT and BANK respectively.
|
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 UNKNOWN32
public static final DataType UINT32
public static final DataType FLOAT32
public static final DataType CHARSTAR8
public static final DataType SHORT16
public static final DataType USHORT16
public static final DataType CHAR8
public static final DataType UCHAR8
public static final DataType DOUBLE64
public static final DataType LONG64
public static final DataType ULONG64
public static final DataType INT32
public static final DataType TAGSEGMENT
public static final DataType ALSOSEGMENT
public static final DataType ALSOBANK
public static final DataType COMPOSITE
public static final DataType BANK
public static final DataType SEGMENT
public static final DataType HOLLERIT
public static final DataType NVALUE
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 static DataType getDataType(int val)
val
- the value to match.null
.public static java.lang.String getName(int val)
val
- the value to match.public java.lang.String toString()
toString
in class java.lang.Enum<DataType>
public int getValue()
public boolean isStructure()
true
if the data type corresponds to one of the structure
types: BANK, SEGMENT, or TAGSEGMENT.