public class EnumMapper extends CachingMapper<graphql.schema.GraphQLEnumType,graphql.schema.GraphQLEnumType>
| Constructor and Description |
|---|
EnumMapper(JavaDeprecationMappingConfig javaDeprecationConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getValueDeprecationReason(Enum<?> value,
MessageBundle messageBundle) |
protected String |
getValueDescription(Enum<?> value,
MessageBundle messageBundle) |
protected graphql.schema.GraphQLDirective[] |
getValueDirectives(Enum<?> value,
OperationMapper operationMapper,
BuildContext buildContext) |
protected String |
getValueName(Enum<?> value,
MessageBundle messageBundle) |
boolean |
supports(AnnotatedType type) |
graphql.schema.GraphQLEnumType |
toGraphQLInputType(String typeName,
AnnotatedType javaType,
OperationMapper operationMapper,
BuildContext buildContext) |
graphql.schema.GraphQLEnumType |
toGraphQLType(String typeName,
AnnotatedType javaType,
OperationMapper operationMapper,
BuildContext buildContext) |
getInputTypeName, getTypeName, toGraphQLInputType, toGraphQLTypepublic EnumMapper(JavaDeprecationMappingConfig javaDeprecationConfig)
public graphql.schema.GraphQLEnumType toGraphQLType(String typeName, AnnotatedType javaType, OperationMapper operationMapper, BuildContext buildContext)
toGraphQLType in class CachingMapper<graphql.schema.GraphQLEnumType,graphql.schema.GraphQLEnumType>public graphql.schema.GraphQLEnumType toGraphQLInputType(String typeName, AnnotatedType javaType, OperationMapper operationMapper, BuildContext buildContext)
toGraphQLInputType in class CachingMapper<graphql.schema.GraphQLEnumType,graphql.schema.GraphQLEnumType>protected String getValueName(Enum<?> value, MessageBundle messageBundle)
protected String getValueDescription(Enum<?> value, MessageBundle messageBundle)
protected String getValueDeprecationReason(Enum<?> value, MessageBundle messageBundle)
protected graphql.schema.GraphQLDirective[] getValueDirectives(Enum<?> value, OperationMapper operationMapper, BuildContext buildContext)
public boolean supports(AnnotatedType type)
Copyright © 2016–2018. All rights reserved.