@PublicApi public interface GraphQLDirectiveContainer extends GraphQLNamedSchemaElement
GraphQLDirective
's.
Directives can be repeatable and (by default) non repeatable.
There are access methods here that get the two different types.
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.util.List<GraphQLDirective>> |
getAllDirectivesByName()
This will return a Map of the all directives that are associated with a
GraphQLNamedSchemaElement , including both
repeatable and non repeatable directives. |
GraphQLDirective |
getDirective(java.lang.String directiveName)
Returns a non repeatable directive with the provided name.
|
java.util.List<GraphQLDirective> |
getDirectives()
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. |
default java.util.List<GraphQLDirective> |
getDirectives(java.lang.String directiveName)
Returns all of the directives with the provided name, including repeatable and non repeatable directives.
|
java.util.Map<java.lang.String,GraphQLDirective> |
getDirectivesByName()
This will return a Map of the non repeatable directives that are associated with a
GraphQLNamedSchemaElement . |
getDefinition, getDescription, getName
accept, equals, getChildren, getChildrenWithTypeReferences, hashCode, withNewChildren
java.util.List<GraphQLDirective> getDirectives()
GraphQLNamedSchemaElement
as a flat list, which may contain repeatable
and non repeatable directives.java.util.Map<java.lang.String,GraphQLDirective> getDirectivesByName()
GraphQLNamedSchemaElement
. Any repeatable directives
will be filtered out of this map.java.util.Map<java.lang.String,java.util.List<GraphQLDirective>> getAllDirectivesByName()
GraphQLNamedSchemaElement
, including both
repeatable and non repeatable directives.GraphQLDirective getDirective(java.lang.String directiveName)
AssertException
if
the directive is a repeatable directive that has more then one instance.directiveName
- the name of the directive to retrievedefault java.util.List<GraphQLDirective> getDirectives(java.lang.String directiveName)
directiveName
- the name of the directives to retrieve