public class EnumKeyMapTypeBuilder
extends com.atlassian.graphql.types.DynamicTypeBuilder
ApiEnum
as the key type.Constructor and Description |
---|
EnumKeyMapTypeBuilder(com.atlassian.graphql.spi.GraphQLTypeBuilder typeBuilder,
com.atlassian.graphql.spi.GraphQLExtensions extensions) |
Modifier and Type | Method and Description |
---|---|
graphql.schema.GraphQLType |
buildType(String typeName,
Type type,
AnnotatedElement element,
com.atlassian.graphql.spi.GraphQLTypeBuilderContext context) |
boolean |
canBuildType(Type type,
AnnotatedElement element) |
Function<Object,Object> |
getValueTransformer(Type type,
AnnotatedElement element) |
public EnumKeyMapTypeBuilder(com.atlassian.graphql.spi.GraphQLTypeBuilder typeBuilder, com.atlassian.graphql.spi.GraphQLExtensions extensions)
public boolean canBuildType(Type type, AnnotatedElement element)
canBuildType
in interface com.atlassian.graphql.spi.GraphQLTypeBuilder
canBuildType
in class com.atlassian.graphql.types.DynamicTypeBuilder
public graphql.schema.GraphQLType buildType(String typeName, Type type, AnnotatedElement element, com.atlassian.graphql.spi.GraphQLTypeBuilderContext context)
buildType
in interface com.atlassian.graphql.spi.GraphQLTypeBuilder
buildType
in class com.atlassian.graphql.types.DynamicTypeBuilder
public Function<Object,Object> getValueTransformer(Type type, AnnotatedElement element)
Copyright © 2003–2020 Atlassian. All rights reserved.