public class IdAdapter extends Object implements TypeMapper, ArgumentInjector, OutputConverter<Object,String>, InputConverter<Object,String>
| Constructor and Description |
|---|
IdAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
convertInput(String substitute,
AnnotatedType type,
GlobalEnvironment environment,
ValueMapper valueMapper) |
String |
convertOutput(Object original,
AnnotatedType type,
ResolutionEnvironment resolutionEnvironment) |
Object |
getArgumentValue(ArgumentInjectorParams params) |
AnnotatedType |
getSubstituteType(AnnotatedType original)
The returned type has to erase to
Class<S> |
boolean |
supports(AnnotatedType type) |
boolean |
supports(AnnotatedType type,
Parameter parameter) |
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 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 String convertOutput(Object original, AnnotatedType type, ResolutionEnvironment resolutionEnvironment)
convertOutput in interface OutputConverter<Object,String>public Object convertInput(String substitute, AnnotatedType type, GlobalEnvironment environment, ValueMapper valueMapper)
convertInput in interface InputConverter<Object,String>public Object getArgumentValue(ArgumentInjectorParams params)
getArgumentValue in interface ArgumentInjectorpublic boolean supports(AnnotatedType type)
supports in interface InputConverter<Object,String>supports in interface OutputConverter<Object,String>supports in interface TypeMapperpublic boolean supports(AnnotatedType type, Parameter parameter)
supports in interface ArgumentInjectorpublic AnnotatedType getSubstituteType(AnnotatedType original)
InputConverterClass<S>getSubstituteType in interface InputConverter<Object,String>getSubstituteType in interface TypeSubstituteroriginal - The original type of the input valueCopyright © 2016–2018. All rights reserved.