Interface EnumDef

All Superinterfaces:
FieldDef

public interface EnumDef extends FieldDef
EnumDef is a extension of FieldDef to support an enumeration type. Valid members of an enumeration are represented as an array of strings. A value instance of EnumDef is represented by a single string, which must exist in the set of valid strings.
Since:
3.0
  • Method Details

    • getValues

      String[] getValues()
      Returns:
      the legal values for the enumeration
    • getName

      String getName()
      Returns:
      the name of the enumeration. Unlike most FieldDef instances enumerations require a name to be included in the schema.
    • clone

      EnumDef clone()
      Description copied from interface: FieldDef
      Perform a deep copy of this FieldDef instance.
      Specified by:
      clone in interface FieldDef
      Returns:
      a deep copy of this object