Class SchemaDefinition
java.lang.Object
no.sikt.graphitron.definitions.objects.SchemaDefinition
- All Implemented Interfaces:
GenerationTarget,ObjectSpecification<OperationField>
public class SchemaDefinition
extends Object
implements ObjectSpecification<OperationField>, GenerationTarget
Represents the top schema object in GraphQL.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?> getFieldByName(String name) no.sikt.graphitron.javapoet.ClassNamegetName()getQuery()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface no.sikt.graphitron.definitions.interfaces.GenerationTarget
createsDataFetcher, createsDataFetchersForFields, isExplicitlyNotGenerated, isGenerated, isGeneratedWithResolverMethods inherited from interface no.sikt.graphitron.definitions.interfaces.ObjectSpecification
isOperationRoot
-
Constructor Details
-
SchemaDefinition
public SchemaDefinition(graphql.language.SchemaDefinition definition)
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceObjectSpecification<OperationField>- Returns:
- The name of the type as specified in the schema.
-
getClassReference
- Specified by:
getClassReferencein interfaceObjectSpecification<OperationField>- Returns:
- The pre-generated class for this GraphQL-type.
-
getGraphClassName
public no.sikt.graphitron.javapoet.ClassName getGraphClassName()- Specified by:
getGraphClassNamein interfaceObjectSpecification<OperationField>- Returns:
- The javapoet
ClassNamefor the imported generated GraphQL type.
-
getFields
- Specified by:
getFieldsin interfaceObjectSpecification<OperationField>- Returns:
- The fields contained within this type.
-
getFieldByName
- Specified by:
getFieldByNamein interfaceObjectSpecification<OperationField>- Returns:
- The field with this name. Null if it does not exist.
-
getQuery
-
getMutation
-