Enum Class FieldType

java.lang.Object
java.lang.Enum<FieldType>
org.apache.fulcrum.intake.model.FieldType
All Implemented Interfaces:
Serializable, Comparable<FieldType>, Constable

public enum FieldType extends Enum<FieldType> implements Serializable
Enum for valid field types.
Author:
Thomas Vandahl
  • Enum Constant Details

    • FIELD_BOOLEAN

      public static final FieldType FIELD_BOOLEAN
    • FIELD_BIGDECIMAL

      public static final FieldType FIELD_BIGDECIMAL
    • FIELD_INT

      public static final FieldType FIELD_INT
    • FIELD_FLOAT

      public static final FieldType FIELD_FLOAT
    • FIELD_FILEITEM

      @Deprecated public static final FieldType FIELD_FILEITEM
      Deprecated.
    • FIELD_UPLOADPART

      public static final FieldType FIELD_UPLOADPART
    • FIELD_STRING

      public static final FieldType FIELD_STRING
    • FIELD_DATESTRING

      public static final FieldType FIELD_DATESTRING
    • FIELD_COMBOKEY

      public static final FieldType FIELD_COMBOKEY
    • FIELD_DOUBLE

      public static final FieldType FIELD_DOUBLE
    • FIELD_SHORT

      public static final FieldType FIELD_SHORT
    • FIELD_LONG

      public static final FieldType FIELD_LONG
    • FIELD_CUSTOM

      public static final FieldType FIELD_CUSTOM
  • 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()
      Return the string value
      Returns:
      a String value
    • getInstance

      public abstract Field<?> getInstance(XmlField f, Group g) throws IntakeException
      Create a specific field instance from its XML representation
      Parameters:
      f - the XML object
      g - the group this field belongs to
      Returns:
      a Field<?> instance
      Throws:
      IntakeException - if the field could not be created