Package io.smallrye.graphql.schema.model
Class Type
- java.lang.Object
-
- io.smallrye.graphql.schema.model.Reference
-
- io.smallrye.graphql.schema.model.Type
-
- All Implemented Interfaces:
Serializable
public final class Type extends Reference
Represent a GraphQL Type. A Type is one of the options for a response, it's a complex type that contains fields that itself is of a certain type. It's a Java Bean that we only care about the getter methods and properties. A Type is a java bean with fields, but can optionally also have operations (queries) that is done with the Source annotation. A Type can also optionally implements interfaces.- Author:
- Phillip Kruger ([email protected])
- See Also:
- Object, Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.smallrye.graphql.schema.model.Reference
Reference.Builder
-
-
Method Summary
-
Methods inherited from class io.smallrye.graphql.schema.model.Reference
addDirectiveInstance, equals, getAdaptTo, getAdaptWith, getClassName, getClassParametrizedType, getClassParametrizedTypes, getDirectiveInstances, getGraphQLClassName, getName, getType, getWrapper, hasClassParameterizedTypes, hasDirectiveInstances, hashCode, hasWrapper, isAdaptingTo, isAdaptingWith, isAddParametrizedTypeNameExtension, setAdaptTo, setAdaptWith, setAddParametrizedTypeNameExtension, setClassName, setClassParametrizedTypes, setDirectiveInstances, setGraphQLClassName, setName, setType, setWrapper
-
-
-
-
Method Detail
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
addField
public void addField(Field field)
-
hasFields
public boolean hasFields()
-
hasField
public boolean hasField(String fieldName)
-
addOperation
public void addOperation(Operation operation)
-
hasOperations
public boolean hasOperations()
-
hasOperation
public boolean hasOperation(String operationName)
-
addBatchOperation
public void addBatchOperation(Operation operation)
-
hasBatchOperations
public boolean hasBatchOperations()
-
hasBatchOperation
public boolean hasBatchOperation(String operationName)
-
addInterface
public void addInterface(Reference interfaceType)
-
hasInterfaces
public boolean hasInterfaces()
-
isInterface
public boolean isInterface()
-
setIsInterface
public void setIsInterface(boolean isInterface)
-
addUnion
public void addUnion(Reference unionType)
-
hasUnionMemberships
public boolean hasUnionMemberships()
-
isMemberOfUnion
public boolean isMemberOfUnion(Reference unionType)
-
-