public class ObjectScalarAdapter extends CachingMapper<graphql.schema.GraphQLScalarType,graphql.schema.GraphQLScalarType> implements OutputConverter<Object,Map<String,?>>
| Constructor and Description |
|---|
ObjectScalarAdapter(ScalarMappingStrategy scalarStrategy) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,?> |
convertOutput(Object original,
AnnotatedType type,
ResolutionEnvironment resolutionEnvironment) |
protected void |
registerAbstract(AnnotatedType type,
Set<Type> abstractTypes,
BuildContext buildContext) |
boolean |
supports(AnnotatedType type) |
graphql.schema.GraphQLScalarType |
toGraphQLInputType(String typeName,
AnnotatedType javaType,
Set<Type> abstractTypes,
OperationMapper operationMapper,
BuildContext buildContext) |
graphql.schema.GraphQLScalarType |
toGraphQLType(String typeName,
AnnotatedType javaType,
Set<Type> abstractTypes,
OperationMapper operationMapper,
BuildContext buildContext) |
getInputTypeName, getTypeName, graphQLInputType, graphQLTypecollectAbstract, toGraphQLInputType, toGraphQLTypepublic ObjectScalarAdapter(ScalarMappingStrategy scalarStrategy)
public graphql.schema.GraphQLScalarType toGraphQLType(String typeName, AnnotatedType javaType, Set<Type> abstractTypes, OperationMapper operationMapper, BuildContext buildContext)
toGraphQLType in class CachingMapper<graphql.schema.GraphQLScalarType,graphql.schema.GraphQLScalarType>public graphql.schema.GraphQLScalarType toGraphQLInputType(String typeName, AnnotatedType javaType, Set<Type> abstractTypes, OperationMapper operationMapper, BuildContext buildContext)
toGraphQLInputType in class CachingMapper<graphql.schema.GraphQLScalarType,graphql.schema.GraphQLScalarType>protected void registerAbstract(AnnotatedType type, Set<Type> abstractTypes, BuildContext buildContext)
registerAbstract in class AbstractionCollectingMapperpublic Map<String,?> convertOutput(Object original, AnnotatedType type, ResolutionEnvironment resolutionEnvironment)
convertOutput in interface OutputConverter<Object,Map<String,?>>public boolean supports(AnnotatedType type)
supports in interface OutputConverter<Object,Map<String,?>>supports in interface TypeMapperCopyright © 2016–2017. All rights reserved.