public class EnumMapToObjectTypeAdapter<E extends Enum<E>,V> extends CachingMapper<graphql.schema.GraphQLObjectType,graphql.schema.GraphQLInputObjectType> implements InputConverter<EnumMap<E,V>,Map<String,V>>
| Constructor and Description |
|---|
EnumMapToObjectTypeAdapter(EnumMapper enumMapper) |
| Modifier and Type | Method and Description |
|---|---|
EnumMap<E,V> |
convertInput(Map<String,V> substitute,
AnnotatedType type,
GlobalEnvironment environment,
ValueMapper valueMapper) |
AnnotatedType |
getSubstituteType(AnnotatedType original)
The returned type has to erase to
Class<S> |
boolean |
supports(AnnotatedType type) |
protected graphql.schema.GraphQLInputObjectType |
toGraphQLInputType(String typeName,
AnnotatedType javaType,
OperationMapper operationMapper,
BuildContext buildContext) |
protected graphql.schema.GraphQLObjectType |
toGraphQLType(String typeName,
AnnotatedType javaType,
OperationMapper operationMapper,
BuildContext buildContext) |
getInputTypeName, getTypeName, toGraphQLInputType, toGraphQLTypepublic EnumMapToObjectTypeAdapter(EnumMapper enumMapper)
protected graphql.schema.GraphQLObjectType toGraphQLType(String typeName, AnnotatedType javaType, OperationMapper operationMapper, BuildContext buildContext)
toGraphQLType in class CachingMapper<graphql.schema.GraphQLObjectType,graphql.schema.GraphQLInputObjectType>protected graphql.schema.GraphQLInputObjectType toGraphQLInputType(String typeName, AnnotatedType javaType, OperationMapper operationMapper, BuildContext buildContext)
toGraphQLInputType in class CachingMapper<graphql.schema.GraphQLObjectType,graphql.schema.GraphQLInputObjectType>public EnumMap<E,V> convertInput(Map<String,V> substitute, AnnotatedType type, GlobalEnvironment environment, ValueMapper valueMapper)
convertInput in interface InputConverter<EnumMap<E extends Enum<E>,V>,Map<String,V>>public boolean supports(AnnotatedType type)
public AnnotatedType getSubstituteType(AnnotatedType original)
InputConverterClass<S>getSubstituteType in interface InputConverter<EnumMap<E extends Enum<E>,V>,Map<String,V>>getSubstituteType in interface TypeSubstituteroriginal - The original type of the input valueCopyright © 2016–2018. All rights reserved.