Enum Class FieldType

java.lang.Object
java.lang.Enum<FieldType>
com.genologics.ri.configuration.FieldType
All Implemented Interfaces:
Serializable, Comparable<FieldType>, Constable

public enum FieldType extends Enum<FieldType>
UDF field types.
  • Enum Constant Details

    • STRING

      public static final FieldType STRING
      String field type.
    • TEXT

      public static final FieldType TEXT
      Text field type for longer text content.
    • BOOLEAN

      public static final FieldType BOOLEAN
      Boolean field type.
    • NUMERIC

      public static final FieldType NUMERIC
      Numeric field type.
    • DATE

      public static final FieldType DATE
      Date field type.
    • URI

      public static final FieldType URI
      URI field type.
  • Method Details

    • values

      public static FieldType[] 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 FieldType 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
    • value

      public String value()
      Gets the string value of this field type.
      Returns:
      The string value.
    • fromValue

      public static FieldType fromValue(String v)
      Gets the FieldType enum value from its string representation.
      Parameters:
      v - The string value.
      Returns:
      The corresponding FieldType enum value.
      Throws:
      IllegalArgumentException - if the value doesn't match any FieldType.