Enum Class TrdpDataType

java.lang.Object
java.lang.Enum<TrdpDataType>
com.trdp.util.TrdpDataType
All Implemented Interfaces:
Serializable, Comparable<TrdpDataType>, Constable

public enum TrdpDataType extends Enum<TrdpDataType>
  • Enum Constant Details

  • Method Details

    • values

      public static TrdpDataType[] 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

      public static TrdpDataType valueOf(String name)
      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 name
      NullPointerException - 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

      public String getDescription()
    • fromTypeId

      public static TrdpDataType fromTypeId(int typeId)
      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

      public static TrdpDataType fromName(String name)
      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