Enum Class Field.LogicalDataType

java.lang.Object
java.lang.Enum<Field.LogicalDataType>
uk.co.sculptor.kflibjava.Field.LogicalDataType
All Implemented Interfaces:
Serializable, Comparable<Field.LogicalDataType>, Constable
Enclosing class:
Field

public static enum Field.LogicalDataType extends Enum<Field.LogicalDataType>
Field Sculptor Logical Data type (SCLT_*) enumerator.
  • Enum Constant Details

  • Method Details

    • values

      public static Field.LogicalDataType[] 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 Field.LogicalDataType 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
    • getFromByte

      public static Field.LogicalDataType getFromByte(byte sclt) throws KfException
      Convert a received value to LogicalDataType enumerator
      Parameters:
      sclt - the Sculptor value to be translated to enumerator
      Returns:
      the enumerator value
      Throws:
      KfException - when the sclt value is invalid
    • getLDTFromDotdData

      public static Field.LogicalDataType getLDTFromDotdData(int type)
      This function is used to return the Field.LogicalDataType value extracted from the dotd file field information
      Parameters:
      type - a dotd field type to generate the LogicalDataType from
      Returns:
      The corresponding Field.LogicalDataType value