Class AppliedGlobalFragment


  • public class AppliedGlobalFragment
    extends java.lang.Object
    A global Fragment, when applied, has a name and may have one or more directives.
    Author:
    etienne-sf
    • Constructor Summary

      Constructors 
      Constructor Description
      AppliedGlobalFragment​(java.lang.String currentToken, QueryTokenizer qt, java.lang.String schema)
      Creates an instance for a global fragment, that has been read in the current QueryTokenizer.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void appendToGraphQLRequests​(java.lang.StringBuilder sb, java.util.Map<java.lang.String,​java.lang.Object> parameters)
      Appends to the given StringBuilder this fragment usage ("...fragmentName") followed by the directive declarations, if any
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AppliedGlobalFragment

        public AppliedGlobalFragment​(java.lang.String currentToken,
                                     QueryTokenizer qt,
                                     java.lang.String schema)
                              throws GraphQLRequestPreparationException
        Creates an instance for a global fragment, that has been read in the current QueryTokenizer. The token of this QueryTokenizer that has just been read is the fragment declaration (...fragmentName).
        Parameters:
        currentToken - The fragment declaration that has just been read in qt, for instance ...fragmentName
        qt -
        schema - value of the springBeanSuffix plugin parameter for the searched schema. When there is only one schema, this plugin parameter is usually not set. In this case, its default value ("") is used.
        Throws:
        GraphQLRequestPreparationException
    • Method Detail

      • appendToGraphQLRequests

        public void appendToGraphQLRequests​(java.lang.StringBuilder sb,
                                            java.util.Map<java.lang.String,​java.lang.Object> parameters)
                                     throws GraphQLRequestExecutionException
        Appends to the given StringBuilder this fragment usage ("...fragmentName") followed by the directive declarations, if any
        Parameters:
        sb -
        parameters -
        Throws:
        GraphQLRequestExecutionException