Class GraphQLTypeRetriever
- java.lang.Object
-
- graphql.annotations.processor.retrievers.GraphQLTypeRetriever
-
public class GraphQLTypeRetriever extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description GraphQLTypeRetriever()
-
Method Summary
-
-
-
Method Detail
-
getGraphQLType
public graphql.schema.GraphQLType getGraphQLType(java.lang.Class<?> object, ProcessingElementsContainer container, boolean isInput) throws GraphQLAnnotationsException, CannotCastMemberExceptionThis will examine the object and will return aGraphQLTypebased on the class type and annotationTypes. - If its annotated withGraphQLUnionit will return aGraphQLUnionType- If its annotated withGraphQLTypeResolverit will return aGraphQLInterfaceType- It it's an Enum it will return aGraphQLEnumType, otherwise it will return aGraphQLObjectType.- Parameters:
object- the object class to examine*container- a class that hold several members that are required in order to build schemaisInput- true if the type is an input type, false otherwise- Returns:
- a
GraphQLTypethat represents that object class - Throws:
GraphQLAnnotationsException- if the object class cannot be examinedCannotCastMemberException- if the object class cannot be examined
-
getGraphQLObjectInfoRetriever
public GraphQLObjectInfoRetriever getGraphQLObjectInfoRetriever()
-
getGraphQLInterfaceRetriever
public GraphQLInterfaceRetriever getGraphQLInterfaceRetriever()
-
getGraphQLFieldRetriever
public GraphQLFieldRetriever getGraphQLFieldRetriever()
-
setGraphQLObjectInfoRetriever
public void setGraphQLObjectInfoRetriever(GraphQLObjectInfoRetriever graphQLObjectInfoRetriever)
-
unsetGraphQLObjectInfoRetriever
public void unsetGraphQLObjectInfoRetriever(GraphQLObjectInfoRetriever graphQLObjectInfoRetriever)
-
setGraphQLInterfaceRetriever
public void setGraphQLInterfaceRetriever(GraphQLInterfaceRetriever graphQLInterfaceRetriever)
-
unsetGraphQLInterfaceRetriever
public void unsetGraphQLInterfaceRetriever(GraphQLInterfaceRetriever graphQLInterfaceRetriever)
-
setGraphQLFieldRetriever
public void setGraphQLFieldRetriever(GraphQLFieldRetriever graphQLFieldRetriever)
-
unsetGraphQLFieldRetriever
public void unsetGraphQLFieldRetriever(GraphQLFieldRetriever graphQLFieldRetriever)
-
setFieldSearchAlgorithm
public void setFieldSearchAlgorithm(SearchAlgorithm fieldSearchAlgorithm)
-
unsetFieldSearchAlgorithm
public void unsetFieldSearchAlgorithm(SearchAlgorithm fieldSearchAlgorithm)
-
setMethodSearchAlgorithm
public void setMethodSearchAlgorithm(SearchAlgorithm methodSearchAlgorithm)
-
unsetMethodSearchAlgorithm
public void unsetMethodSearchAlgorithm(SearchAlgorithm methodSearchAlgorithm)
-
setExtensionsHandler
public void setExtensionsHandler(GraphQLExtensionsHandler extensionsHandler)
-
unsetExtensionsHandler
public void unsetExtensionsHandler(GraphQLExtensionsHandler extensionsHandler)
-
-