Class IterableResolver
java.lang.Object
se.l4.graphql.binding.internal.resolvers.IterableResolver
- All Implemented Interfaces:
GraphQLDelegatingResolver
,GraphQLResolver
,GraphQLInputResolver
,GraphQLOutputResolver
public class IterableResolver extends Object implements GraphQLOutputResolver, GraphQLInputResolver, GraphQLDelegatingResolver
Resolver for a list.
-
Constructor Summary
Constructors Constructor Description IterableResolver()
-
Method Summary
Modifier and Type Method Description ResolvedGraphQLType<? extends graphql.schema.GraphQLInputType>
resolveInput(GraphQLInputEncounter encounter)
Resolve theGraphQLInputType
of the given type.ResolvedGraphQLType<? extends graphql.schema.GraphQLOutputType>
resolveOutput(GraphQLOutputEncounter encounter)
Resolve theGraphQLType
of the given type.boolean
supportsInput(se.l4.commons.types.reflect.TypeRef type)
Perform a check if this input resolver might support the given type.boolean
supportsOutput(se.l4.commons.types.reflect.TypeRef type)
Perform a check if this output resolver might support the given type.String
toString()
-
Constructor Details
-
IterableResolver
public IterableResolver()
-
-
Method Details
-
supportsOutput
public boolean supportsOutput(se.l4.commons.types.reflect.TypeRef type)Description copied from interface:GraphQLOutputResolver
Perform a check if this output resolver might support the given type. This method is expected to perform a minimal check, such as for theTypeRef.getErasedType()
and annotations on the type. More detailed checks should be done inGraphQLOutputResolver.resolveOutput(GraphQLOutputEncounter)
.- Specified by:
supportsOutput
in interfaceGraphQLOutputResolver
- Returns:
-
resolveOutput
public ResolvedGraphQLType<? extends graphql.schema.GraphQLOutputType> resolveOutput(GraphQLOutputEncounter encounter)Description copied from interface:GraphQLOutputResolver
Resolve theGraphQLType
of the given type.- Specified by:
resolveOutput
in interfaceGraphQLOutputResolver
- Returns:
-
supportsInput
public boolean supportsInput(se.l4.commons.types.reflect.TypeRef type)Description copied from interface:GraphQLInputResolver
Perform a check if this input resolver might support the given type. This method is expected to perform a minimal check, such as for theTypeRef.getErasedType()
and annotations on the type. More detailed checks should be done inGraphQLInputResolver.resolveInput(GraphQLInputEncounter)
.- Specified by:
supportsInput
in interfaceGraphQLInputResolver
- Returns:
-
resolveInput
public ResolvedGraphQLType<? extends graphql.schema.GraphQLInputType> resolveInput(GraphQLInputEncounter encounter)Description copied from interface:GraphQLInputResolver
Resolve theGraphQLInputType
of the given type.- Specified by:
resolveInput
in interfaceGraphQLInputResolver
- Returns:
-
toString
-