Interface Directive
- All Known Implementing Classes:
DirectiveImpl
public interface Directive
Contains getter for the attributes of a GraphQL directive definition.
- Author:
- etienne-sf
-
Method Summary
Modifier and TypeMethodDescriptiondefault Field
getArgument
(String argumentName) Returns the argument that matches the given argument nameA directive may have arguments.Returns the comments that have been found before this object, in the provided GraphQL schemaReturns the description for this object, in the provided GraphQL schemaReturns the list of location that this directive may havegetName()
The name of the directiveboolean
Returns true if this directive is a standard GraphQL directive, or if it has been defined in the GraphQL schema
-
Method Details
-
getName
String getName()The name of the directive -
getArguments
A directive may have arguments. An argument is actually a field. -
getArgument
Returns the argument that matches the given argument name- Parameters:
argumentName
-- Returns:
- Throws:
NoSuchFieldException
- If the directive has no such argumentNullPointerException
- If argumentName is null
-
getComments
Returns the comments that have been found before this object, in the provided GraphQL schema -
getDescription
Description getDescription()Returns the description for this object, in the provided GraphQL schema -
getDirectiveLocations
List<DirectiveLocation> getDirectiveLocations()Returns the list of location that this directive may have -
isStandard
boolean isStandard()Returns true if this directive is a standard GraphQL directive, or if it has been defined in the GraphQL schema
-