Enum Class VariableDeclaredType

java.lang.Object
java.lang.Enum<VariableDeclaredType>
cern.nxcals.api.domain.VariableDeclaredType
All Implemented Interfaces:
Serializable, Comparable<VariableDeclaredType>, Constable

public enum VariableDeclaredType extends Enum<VariableDeclaredType>
This enum represents a declared type on a variable which is desired by the user. It is used for searching for variables that have that type set. It is not used for any validation if the actual configuration on the variable (like mapping to entity, fields or schema types) match the declared type. We can consider it more like an additional naming label (together with Unit and Description). It was introduced to allow more backwards compatibility with the old CALS API.
  • Enum Constant Details

  • Method Details

    • values

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