java.lang.Object
no.sikt.graphql.schema.FieldType
no.sikt.graphitron.definitions.fields.containedtypes.FieldType

public class FieldType extends no.sikt.graphql.schema.FieldType
Class that contains all the necessary information about a field's type and nullability.
  • Constructor Details

    • FieldType

      public FieldType(graphql.language.Type<?> fieldType)
  • Method Details

    • setFields

      protected void setFields(graphql.language.Type<?> fieldType)
      Overrides:
      setFields in class no.sikt.graphql.schema.FieldType
    • getName

      public String getName()
      Overrides:
      getName in class no.sikt.graphql.schema.FieldType
      Returns:
      The name of the data type as specified in the schema.
    • isIterableWrapped

      public boolean isIterableWrapped()
      Returns:
      Is this data type wrapped in a list?
    • isNullable

      public boolean isNullable()
    • isIterableNullable

      public boolean isIterableNullable()
      Returns:
      Is this data type's list wrapping nullable?
    • isID

      public boolean isID()
      Returns:
      Is this data type an ID type?
    • getTypeClass

      public no.sikt.graphitron.javapoet.TypeName getTypeClass()
      Returns:
      TypeName for this field.