Enum Class TrdpDataType
- All Implemented Interfaces:
Serializable, Comparable<TrdpDataType>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic TrdpDataTypeLooks up a data type by name, including IEC 61375-2-3 aliases (BITSET8 and ANTIVALENT8 resolve to BOOL8).static TrdpDataTypefromTypeId(int typeId) Looks up a data type by its IEC 61375-2-3 numeric type identifier.intgetSize()intReturns the IEC 61375-2-3 numeric type identifier (1..16).static TrdpDataTypeReturns the enum constant of this class with the specified name.static TrdpDataType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BOOL8
-
CHAR8
-
UTF16
-
INT8
-
INT16
-
INT32
-
INT64
-
UINT8
-
UINT16
-
UINT32
-
UINT64
-
REAL32
-
REAL64
-
TIMEDATE32
-
TIMEDATE48
-
TIMEDATE64
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getTypeId
public int getTypeId()Returns the IEC 61375-2-3 numeric type identifier (1..16). -
getSize
public int getSize() -
getDescription
-
fromTypeId
Looks up a data type by its IEC 61375-2-3 numeric type identifier.- Parameters:
typeId- the numeric type ID (1..16)- Returns:
- the matching data type, or null if not a primitive type ID
-
fromName
Looks up a data type by name, including IEC 61375-2-3 aliases (BITSET8 and ANTIVALENT8 resolve to BOOL8).- Parameters:
name- the type name- Returns:
- the matching data type, or null if not found
-