Class 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 Detail

      • Directive

        public Directive()
        Default constructor, used by the generated DirectiveRegistryInitialize
        Parameters:
        qt -
    • Method Detail

      • appendToGraphQLRequests

        public void appendToGraphQLRequests​(java.lang.StringBuilder sb,
                                            java.util.Map<java.lang.String,​java.lang.Object> parameters)
                                     throws GraphQLRequestExecutionException
        Appends this current directive into the given StringBuilder, to build the GraphQL request
        Parameters:
        sb -
        parameters - The list of bind values for the possible bind parameters
        Throws:
        GraphQLRequestExecutionException
      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)
      • setArguments

        public void setArguments​(java.util.List<InputParameter> arguments)
      • getDirectiveLocations

        public java.util.List<DirectiveLocation> getDirectiveLocations()
      • setDirectiveLocations

        public void setDirectiveLocations​(java.util.List<DirectiveLocation> directiveLocations)
      • getPackageName

        public java.lang.String getPackageName()
        Returns the package name where the code for this directive has been generated. It's used to properly parse the directive arguments
        Returns:
      • setPackageName

        public void setPackageName​(java.lang.String packageName)