Enum Class FieldType

java.lang.Object
java.lang.Enum<FieldType>
com.oracle.content.sdk.model.field.FieldType
All Implemented Interfaces:
Serializable, Comparable<FieldType>, Constable

public enum FieldType extends Enum<FieldType>
Enumeration of the field type for content item fields, including the associated ContentField class.
  • Enum Constant Details

    • TEXT

      public static final FieldType TEXT
    • LARGE_TEXT

      public static final FieldType LARGE_TEXT
    • DATE

      public static final FieldType DATE
    • INTEGER

      public static final FieldType INTEGER
    • DECIMAL

      public static final FieldType DECIMAL
    • BOOLEAN

      public static final FieldType BOOLEAN
    • CONTENT_ITEM

      public static final FieldType CONTENT_ITEM
    • DIGITAL_ASSET

      public static final FieldType DIGITAL_ASSET
    • TEXT_LIST

      public static final FieldType TEXT_LIST
    • LARGE_TEXT_LIST

      public static final FieldType LARGE_TEXT_LIST
    • REFERENCE_LIST

      public static final FieldType REFERENCE_LIST
    • JSON

      public static final FieldType JSON
    • UNKNOWN

      public static final FieldType UNKNOWN
  • Field Details

    • jsonName

      public final String jsonName
    • fieldClass

      public final Class<? extends ContentField> fieldClass
    • isList

      public final boolean isList
  • 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
    • getFieldType

      public static FieldType getFieldType(Class fieldClass)
    • getFieldType

      public static FieldType getFieldType(String typename, boolean isList, boolean isAsset)
      Given a field name type and other info such as list, asset, find a matching type.
      Parameters:
      typename - type as it appears in json
      isList - whether the type is a list
      isAsset - whether the reference type is a digital asset
      Returns:
      matching FieldType or null
    • isReference

      public boolean isReference()
      Return true if this type is a reference type
      Returns:
      true if reference