java.lang.Object
com.graphql_java_generator.plugin.language.impl.AbstractType
com.graphql_java_generator.plugin.language.impl.EnumType
All Implemented Interfaces:
Type

public class EnumType extends AbstractType
This class is the image for a graphql Enum
Author:
etienne-sf
  • Constructor Details

    • EnumType

      public EnumType(String name, CommonConfiguration configuration, DocumentParser documentParser)
      Parameters:
      name - The name of this enum type
      configuration - The current plugin configuration, which is accessible through an interface that extends CommonConfiguration
      documentParser - The DocumentParser that has parsed the schema, and so that contains the whole schema definition
  • Method Details

    • getIdentifier

      public Field getIdentifier()
      An enum has no identifier.
      Returns:
      null
    • getPackageName

      public String getPackageName()
      Description copied from interface: Type
      Returns the package's name where the GraphQL objects from the GraphQL schema must be generated.
      Returns:
    • isInputType

      public boolean isInputType()
      Description copied from interface: Type
      Returns true if this type is a GraphQL InputObjectType, false otherwise
    • isCustomScalar

      public boolean isCustomScalar()
      Description copied from interface: Type
      Returns true if this type is a GraphQL Custom Scalar, false otherwise
    • isEnum

      public boolean isEnum()
      Description copied from interface: Type
      Returns true if this type is a GraphQL enum, false otherwise
    • isScalar

      public boolean isScalar()
      Description copied from interface: Type
      Returns true if this type is a GraphQL Scalar (custom or not), false otherwise
    • getPrefix

      protected String getPrefix()
      Overrides:
      getPrefix in class AbstractType
    • getSuffix

      protected String getSuffix()
      Overrides:
      getSuffix in class AbstractType