Class Directive
java.lang.Object
com.graphql_java_generator.client.directive.Directive
public class Directive
extends java.lang.Object
This object can represent both:
- A directive definition, as defined in the GraphQL schema, or as a standard GraphQL directive (skip, include, deprecated). In this case the argument's value is null.
- An applied directive within a query/mutation/subscription. In this case, the argument's value is the value read in the query/mutation/subscription. Thus it can be a hard coded value, or a bind parameter)/
- Author:
- etienne-sf
-
Constructor Summary
Constructors Constructor Description Directive()Directive(java.lang.String name)Directive(java.lang.String name, InputParameter... arguments)Directive(java.lang.String name, java.util.List<InputParameter> arguments) -
Method Summary
Modifier and Type Method Description java.util.List<InputParameter>getArguments()java.util.List<DirectiveLocation>getDirectiveLocations()java.lang.StringgetName()voidsetArguments(java.util.List<InputParameter> arguments)voidsetDirectiveLocations(java.util.List<DirectiveLocation> directiveLocations)voidsetName(java.lang.String name)
-
Constructor Details
-
Method Details
-
getName
public java.lang.String getName() -
setName
public void setName(java.lang.String name) -
getArguments
-
setArguments
-
getDirectiveLocations
-
setDirectiveLocations
-