Interface ObjectSpecification<T extends FieldSpecification>

All Known Subinterfaces:
RecordObjectSpecification<T>, TypeResolverTarget
All Known Implementing Classes:
AbstractObjectDefinition, ConnectionObjectDefinition, EdgeObjectDefinition, EnumDefinition, ExceptionDefinition, InputDefinition, InterfaceDefinition, ObjectDefinition, OrderByEnumDefinition, RecordObjectDefinition, SchemaDefinition, UnionDefinition

public interface ObjectSpecification<T extends FieldSpecification>
Specifies that this Java object represents a GraphQL object.
  • Method Details

    • getName

      String getName()
      Returns:
      The name of the type as specified in the schema.
    • getClassReference

      Class<?> getClassReference()
      Returns:
      The pre-generated class for this GraphQL-type.
    • getGraphClassName

      no.sikt.graphitron.javapoet.ClassName getGraphClassName()
      Returns:
      The javapoet ClassName for the imported generated GraphQL type.
    • getFields

      List<T> getFields()
      Returns:
      The fields contained within this type.
    • getFieldByName

      T getFieldByName(String name)
      Returns:
      The field with this name. Null if it does not exist.
    • isOperationRoot

      default boolean isOperationRoot()
      Returns:
      Is this type the top node? That should be either the Query or the Mutation type.