Class EnumKeyMapTypeBuilder

  • All Implemented Interfaces:
    com.atlassian.graphql.spi.GraphQLTypeBuilder

    public class EnumKeyMapTypeBuilder
    extends com.atlassian.graphql.types.DynamicTypeBuilder
    A builder for GraphQLOutputType objects for maps with ApiEnum as the key type.
    Since:
    6.12.0
    • Constructor Detail

      • EnumKeyMapTypeBuilder

        public EnumKeyMapTypeBuilder​(com.atlassian.graphql.spi.GraphQLTypeBuilder typeBuilder,
                                     com.atlassian.graphql.spi.GraphQLExtensions extensions)
    • Method Detail

      • canBuildType

        public boolean canBuildType​(Type type,
                                    AnnotatedElement element)
        Specified by:
        canBuildType in interface com.atlassian.graphql.spi.GraphQLTypeBuilder
        Overrides:
        canBuildType in class com.atlassian.graphql.types.DynamicTypeBuilder
      • buildType

        public graphql.schema.GraphQLType buildType​(String typeName,
                                                    Type type,
                                                    AnnotatedElement element,
                                                    com.atlassian.graphql.spi.GraphQLTypeBuilderContext context)
        Specified by:
        buildType in interface com.atlassian.graphql.spi.GraphQLTypeBuilder
        Overrides:
        buildType in class com.atlassian.graphql.types.DynamicTypeBuilder