Package graphql.schema.idl
Class DirectiveInfo
- java.lang.Object
-
- graphql.schema.idl.DirectiveInfo
-
@PublicApi public class DirectiveInfo extends java.lang.Object
Info on all the directives provided by graphql specification
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Map<java.lang.String,GraphQLDirective>GRAPHQL_SPECIFICATION_DIRECTIVE_MAPA map from directive name to directive which provided by specificationstatic java.util.Set<GraphQLDirective>GRAPHQL_SPECIFICATION_DIRECTIVESA set of directives which provided by graphql specification
-
Constructor Summary
Constructors Constructor Description DirectiveInfo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisGraphqlSpecifiedDirective(GraphQLDirective graphQLDirective)Returns true if the provided directive has been defined in graphql specificationstatic booleanisGraphqlSpecifiedDirective(java.lang.String directiveName)Returns true if a directive with provided directiveName has been defined in graphql specification
-
-
-
Field Detail
-
GRAPHQL_SPECIFICATION_DIRECTIVES
public static final java.util.Set<GraphQLDirective> GRAPHQL_SPECIFICATION_DIRECTIVES
A set of directives which provided by graphql specification
-
GRAPHQL_SPECIFICATION_DIRECTIVE_MAP
public static final java.util.Map<java.lang.String,GraphQLDirective> GRAPHQL_SPECIFICATION_DIRECTIVE_MAP
A map from directive name to directive which provided by specification
-
-
Method Detail
-
isGraphqlSpecifiedDirective
public static boolean isGraphqlSpecifiedDirective(java.lang.String directiveName)
Returns true if a directive with provided directiveName has been defined in graphql specification- Parameters:
directiveName- the name of directive in question- Returns:
- true if the directive provided by graphql specification, and false otherwise
-
isGraphqlSpecifiedDirective
public static boolean isGraphqlSpecifiedDirective(GraphQLDirective graphQLDirective)
Returns true if the provided directive has been defined in graphql specification- Parameters:
graphQLDirective- the directive in question- Returns:
- true if the directive provided by graphql specification, and false otherwise
-
-