public enum DataType extends java.lang.Enum<DataType>
Enum Constant and Description |
---|
ALSOBANK |
ALSOSEGMENT |
BANK |
CHAR8 |
CHARSTAR8 |
COMPOSITE |
DOUBLE64 |
FLOAT32 |
HOLLERIT |
INT32 |
LONG64 |
mVALUE |
nVALUE |
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 |
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 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.public boolean isBank()
true
if this data type corresponds to a bank structure.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 boolean isInteger()
true
if the data type corresponds to an integer type