public class JsonNodeAdapter extends Object implements TypeMapper, InputConverter<com.fasterxml.jackson.databind.JsonNode,Object>, OutputConverter<com.fasterxml.jackson.databind.JsonNode,Object>
| Constructor and Description |
|---|
JsonNodeAdapter() |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
convertInput(Object substitute,
AnnotatedType type,
GlobalEnvironment environment,
ValueMapper valueMapper) |
Object |
convertOutput(com.fasterxml.jackson.databind.JsonNode original,
AnnotatedType type,
ResolutionEnvironment resolutionEnvironment) |
AnnotatedType |
getSubstituteType(AnnotatedType original)
The returned type has to erase to
Class<S> |
boolean |
supports(AnnotatedType type) |
graphql.schema.GraphQLInputType |
toGraphQLInputType(AnnotatedType javaType,
OperationMapper operationMapper,
Set<Class<? extends TypeMapper>> mappersToSkip,
BuildContext buildContext) |
graphql.schema.GraphQLOutputType |
toGraphQLType(AnnotatedType javaType,
OperationMapper operationMapper,
Set<Class<? extends TypeMapper>> mappersToSkip,
BuildContext buildContext) |
public com.fasterxml.jackson.databind.JsonNode convertInput(Object substitute, AnnotatedType type, GlobalEnvironment environment, ValueMapper valueMapper)
convertInput in interface InputConverter<com.fasterxml.jackson.databind.JsonNode,Object>public AnnotatedType getSubstituteType(AnnotatedType original)
InputConverterClass<S>getSubstituteType in interface InputConverter<com.fasterxml.jackson.databind.JsonNode,Object>getSubstituteType in interface TypeSubstituteroriginal - The original type of the input valuepublic Object convertOutput(com.fasterxml.jackson.databind.JsonNode original, AnnotatedType type, ResolutionEnvironment resolutionEnvironment)
convertOutput in interface OutputConverter<com.fasterxml.jackson.databind.JsonNode,Object>public graphql.schema.GraphQLOutputType toGraphQLType(AnnotatedType javaType, OperationMapper operationMapper, Set<Class<? extends TypeMapper>> mappersToSkip, BuildContext buildContext)
toGraphQLType in interface TypeMapperpublic graphql.schema.GraphQLInputType toGraphQLInputType(AnnotatedType javaType, OperationMapper operationMapper, Set<Class<? extends TypeMapper>> mappersToSkip, BuildContext buildContext)
toGraphQLInputType in interface TypeMapperpublic boolean supports(AnnotatedType type)
supports in interface InputConverter<com.fasterxml.jackson.databind.JsonNode,Object>supports in interface OutputConverter<com.fasterxml.jackson.databind.JsonNode,Object>supports in interface TypeMapperCopyright © 2016–2018. All rights reserved.