java.lang.Object
java.lang.Enum<Type>
dev.getelements.elements.rt.manifest.model.Type
All Implemented Interfaces:
Serializable, Comparable<Type>, Constable

public enum Type extends Enum<Type>
The listing of pre-defined types in the ModelManifest. Created by patricktwohig on 8/16/17.
  • Enum Constant Details

    • STRING

      public static final Type STRING
      The string type. Generally expressed as a String.
    • NUMBER

      public static final Type NUMBER
      The number type. Generally expressed as a Double or primitive Java double.
    • INTEGER

      public static final Type INTEGER
      The number type. Generally expressed as a Integer or primitive Java double.
    • BOOLEAN

      public static final Type BOOLEAN
      The boolean type. Generally expressed as a Boolean or primitive Java boolean.
    • OBJECT

      public static final Type OBJECT
      The object type.
    • ARRAY

      public static final Type ARRAY
      The array type.
  • Field Details

    • value

      public final String value
  • Method Details

    • values

      public static Type[] 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 Type 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
    • findByValue

      public static Type findByValue(String value)
      Finds the Type instance by the value read from the underlying script.
      Parameters:
      value - the value
      Returns:
      the Type instance
      Throws:
      IllegalArgumentException - if the type was not supported
    • findByClass

      public static Type findByClass(Class<?> cls)