|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<DataType> org.jlab.coda.jevio.DataType
public enum DataType
This an enum used to convert data type numerical values to a more meaningful name. For example, the data type with value 0xe corresponds to the enum BANK. Mostly this is used for printing. In this version of evio, the ALSOTAGSEGMENT (0x40) value was removed from this enum because the upper 2 bits of a byte containing the datatype are now used to store padding data.
Enum Constant Summary | |
---|---|
ALSOBANK
|
|
ALSOSEGMENT
|
|
BANK
|
|
CHAR8
|
|
CHARSTAR8
|
|
COMPOSITE
|
|
DOUBLE64
|
|
FLOAT32
|
|
HOLLERIT
|
|
INT32
|
|
LONG64
|
|
NVALUE
|
|
SEGMENT
|
|
SHORT16
|
|
TAGSEGMENT
|
|
UCHAR8
|
|
UINT32
|
|
ULONG64
|
|
UNKNOWN32
|
|
USHORT16
|
Method Summary | |
---|---|
static DataType |
getDataType(int value)
Obtain the enum from the value. |
static java.lang.String |
getName(int value)
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.) |
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. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, 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 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 SEGMENT
public static final DataType BANK
public static final DataType COMPOSITE
public static final DataType ALSOBANK
public static final DataType ALSOSEGMENT
public static final DataType HOLLERIT
public static final DataType NVALUE
Method Detail |
---|
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 name
java.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static java.lang.String getName(int value)
value
- the value to match.
public static DataType getDataType(int value)
value
- the value to match.
null
.public boolean isStructure()
true
if the data type corresponds to one of the structure
types: BANK, SEGMENT, or TAGSEGMENT.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |