public enum DataType extends java.lang.Enum<DataType>
Enum Constant and Description |
---|
ALSOBANK
Bank data container.
|
ALSOSEGMENT
Segment data container.
|
BANK
Bank data container.
|
CHAR8
Signed 8-bit integer.
|
CHARSTAR8
String.
|
COMPOSITE
Composite data type.
|
DOUBLE64
64-bit double.
|
FLOAT32
32-bit float.
|
HOLLERIT
Hollerit data type used in Composite data.
|
INT32
Signed 32-bit integer.
|
LONG64
Signed 64-bit integer.
|
mVALUE
m (8-bit integer) data type used in Composite data.
|
nVALUE
n (16-bit integer) data type used in Composite data.
|
NVALUE
N (32-bit integer) data type used in Composite data.
|
SEGMENT
Segment data container.
|
SHORT16
Signed 16-bit integer.
|
TAGSEGMENT
Tag segment data container.
|
UCHAR8
Unsigned 8-bit integer.
|
UINT32
Unsigned 32-bit integer.
|
ULONG64
Unsigned 64-bit integer.
|
UNKNOWN32
Unknown data type.
|
USHORT16
Unsigned 16-bit integer.
|
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 |
isBank()
Convenience routine to see if "this" data type is a bank structure.
|
static boolean |
isBank(int dataType)
Convenience routine to see if the given integer arg represents a BANK.
|
boolean |
isInteger()
Convenience routine to see if "this" data type is an integer of some kind -
either 8, 16, 32, or 64 bits worth.
|
static boolean |
isSegment(int dataType)
Convenience routine to see if the given integer arg represents a SEGMENT.
|
boolean |
isStructure()
Convenience routine to see if "this" data type is a structure (a container.)
|
static boolean |
isStructure(int dataType)
Convenience routine to see if the given integer arg represents a data type which
is a structure (a container).
|
static boolean |
isTagSegment(int dataType)
Convenience routine to see if the given integer arg represents a TAGSEGMENT.
|
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 final DataType nVALUE
public static final DataType mVALUE
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 static boolean isStructure(int dataType)
dataType
- data type to examine.true
if the data type corresponds to one of the structure
types: BANK, SEGMENT, or TAGSEGMENT.public static boolean isBank(int dataType)
dataType
- data type to examine.true
if the data type corresponds to a BANK.public static boolean isSegment(int dataType)
dataType
- data type to examine.true
if the data type corresponds to a SEGMENT.public static boolean isTagSegment(int dataType)
dataType
- data type to examine.true
if the data type corresponds to a TAGSEGMENT.public int getValue()
public java.lang.String toString()
toString
in class java.lang.Enum<DataType>
public boolean isStructure()
true
if the data type corresponds to one of the structure
types: BANK, SEGMENT, or TAGSEGMENT.public boolean isBank()
true
if this data type corresponds to a bank structure.public boolean isInteger()
true
if the data type corresponds to an integer type