Class GraphQLTypeMappingRegistry
java.lang.Object
com.graphql_java_generator.client.GraphQLTypeMappingRegistry
This class is a registry of the GraphQLTypeMapping classes that have been generated at runtime. These classes
contains the mapping that allows to find at runtime the class that must be used for a given GraphQL type, from its
name
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GraphQLTypeMappinggetGraphQLTypeMapping(String schemaName) Retrieves the GraphQLTypeMapping instance for the given schemastatic Class<?>getJavaClass(String schemaName, String typeName) Retrieves the Java class that maps to the given GraphQL type name, for the given schemastatic booleanisGraphQLTypeMappingRegistered(String schemaName) Indicates whether a GraphQLTypeMapping instance has been registered for the given schemastatic voidregisterGraphQLTypeMapping(GraphQLTypeMapping graphQLTypeMapping) Registers the given GraphQLTypeMapping instance for the given schema
-
Constructor Details
-
GraphQLTypeMappingRegistry
public GraphQLTypeMappingRegistry()
-
-
Method Details
-
registerGraphQLTypeMapping
Registers the given GraphQLTypeMapping instance for the given schema- Parameters:
schemaName- The name of the schemagraphQLTypeMapping- The GraphQLTypeMapping instance for this schema
-
isGraphQLTypeMappingRegistered
Indicates whether a GraphQLTypeMapping instance has been registered for the given schema- Parameters:
schemaName-- Returns:
-
getGraphQLTypeMapping
Retrieves the GraphQLTypeMapping instance for the given schema- Parameters:
schemaName- The name of the schema- Returns:
-
getJavaClass
Retrieves the Java class that maps to the given GraphQL type name, for the given schema- Parameters:
schemaName- The name of the schematypeName- The name of the GraphQL type, as found in the GraphQL schema- Returns:
-