Class EnumType

java.lang.Object
io.smallrye.graphql.schema.model.Reference
io.smallrye.graphql.schema.model.EnumType
All Implemented Interfaces:
Serializable

public final class EnumType extends Reference
Represent an enum type in the Schema.
Author:
Phillip Kruger (phillip.kruger@redhat.com)
See Also:
  • Constructor Details

    • EnumType

      public EnumType()
    • EnumType

      public EnumType(String className, String name, String description)
  • Method Details

    • setDescription

      public void setDescription(String description)
    • getDescription

      public String getDescription()
    • setValues

      public void setValues(Set<EnumValue> values)
    • getValues

      public Set<EnumValue> getValues()
    • addValue

      public void addValue(EnumValue value)
    • hasValues

      public boolean hasValues()
    • toString

      public String toString()
      Overrides:
      toString in class Reference