Interface GraphQLDirectiveContainer

    • Method Detail

      • getAppliedDirectives

        java.util.List<GraphQLAppliedDirective> getAppliedDirectives()
        This will return a list of all the directives that have been put on GraphQLNamedSchemaElement as a flat list, which may contain repeatable and non-repeatable directives.
        Returns:
        a list of all the directives associated with this named schema element
      • getAllAppliedDirectivesByName

        java.util.Map<java.lang.String,​java.util.List<GraphQLAppliedDirective>> getAllAppliedDirectivesByName()
        This will return a Map of the all directives that are associated with a GraphQLNamedSchemaElement, including both repeatable and non-repeatable directives.
        Returns:
        a map of all directives by directive name
      • getAppliedDirective

        GraphQLAppliedDirective getAppliedDirective​(java.lang.String directiveName)
        Returns a non-repeatable directive with the provided name.
        Parameters:
        directiveName - the name of the directive to retrieve
        Returns:
        the directive or null if there is not one with that name
      • getAppliedDirectives

        default java.util.List<GraphQLAppliedDirective> getAppliedDirectives​(java.lang.String directiveName)
        Returns all of the directives with the provided name, including repeatable and non repeatable directives.
        Parameters:
        directiveName - the name of the directives to retrieve
        Returns:
        the directives or empty list if there is not one with that name
      • hasDirective

        @Deprecated
        default boolean hasDirective​(java.lang.String directiveName)
        Deprecated.
        This will return true if the element has a directive (repeatable or non repeatable) with the specified name
        Parameters:
        directiveName - the name of the directive
        Returns:
        true if there is a directive on this element with that name
      • hasAppliedDirective

        default boolean hasAppliedDirective​(java.lang.String directiveName)
        This will return true if the element has a directive (repeatable or non repeatable) with the specified name
        Parameters:
        directiveName - the name of the directive
        Returns:
        true if there is a directive on this element with that name
      • getDirectives

        @Deprecated
        java.util.List<GraphQLDirective> getDirectives()
        Deprecated.
        - use the GraphQLAppliedDirective methods instead
        This will return a list of all the directives that have been put on GraphQLNamedSchemaElement as a flat list, which may contain repeatable and non-repeatable directives.
        Returns:
        a list of all the directives associated with this named schema element
      • getDirectivesByName

        @Deprecated
        java.util.Map<java.lang.String,​GraphQLDirective> getDirectivesByName()
        Deprecated.
        - use the GraphQLAppliedDirective methods instead
        This will return a Map of the non repeatable directives that are associated with a GraphQLNamedSchemaElement. Any repeatable directives will be filtered out of this map.
        Returns:
        a map of non repeatable directives by directive name.
      • getAllDirectivesByName

        @Deprecated
        java.util.Map<java.lang.String,​java.util.List<GraphQLDirective>> getAllDirectivesByName()
        Deprecated.
        - use the GraphQLAppliedDirective methods instead
        This will return a Map of the all directives that are associated with a GraphQLNamedSchemaElement, including both repeatable and non repeatable directives.
        Returns:
        a map of all directives by directive name
      • getDirective

        @Deprecated
        GraphQLDirective getDirective​(java.lang.String directiveName)
        Deprecated.
        - use the GraphQLAppliedDirective methods instead
        Returns a non-repeatable directive with the provided name. This will throw a AssertException if the directive is a repeatable directive that has more then one instance.
        Parameters:
        directiveName - the name of the directive to retrieve
        Returns:
        the directive or null if there is not one with that name
      • getDirectives

        @Deprecated
        default java.util.List<GraphQLDirective> getDirectives​(java.lang.String directiveName)
        Deprecated.
        - use the GraphQLAppliedDirective methods instead
        Returns all of the directives with the provided name, including repeatable and non repeatable directives.
        Parameters:
        directiveName - the name of the directives to retrieve
        Returns:
        the directives or empty list if there is not one with that name