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 Summary
Modifier and TypeMethodDescriptionClass<?> getFieldByName(String name) no.sikt.graphitron.javapoet.ClassNamegetName()default boolean
-
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
ClassNamefor the imported generated GraphQL type.
-
getFields
- Returns:
- The fields contained within this type.
-
getFieldByName
- 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.
-