@PublicApi public class DirectiveInfo extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Map<java.lang.String,GraphQLDirective> |
GRAPHQL_SPECIFICATION_DIRECTIVE_MAP
A map from directive name to directive which provided by specification
|
static java.util.Set<GraphQLDirective> |
GRAPHQL_SPECIFICATION_DIRECTIVES
A set of directives which provided by graphql specification
|
Constructor and Description |
---|
DirectiveInfo() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isGraphqlSpecifiedDirective(GraphQLDirective graphQLDirective)
Returns true if the provided directive has been defined in graphql specification
|
static boolean |
isGraphqlSpecifiedDirective(java.lang.String directiveName)
Returns true if a directive with provided directiveName has been defined in graphql specification
|
public static final java.util.Set<GraphQLDirective> GRAPHQL_SPECIFICATION_DIRECTIVES
public static final java.util.Map<java.lang.String,GraphQLDirective> GRAPHQL_SPECIFICATION_DIRECTIVE_MAP
public static boolean isGraphqlSpecifiedDirective(java.lang.String directiveName)
directiveName
- the name of directive in questionpublic static boolean isGraphqlSpecifiedDirective(GraphQLDirective graphQLDirective)
graphQLDirective
- the directive in question