Class AppliedGlobalFragment
java.lang.Object
com.graphql_java_generator.client.request.AppliedGlobalFragment
A global Fragment, when applied, has a name and may have one or more directives.
- Author:
- etienne-sf
-
Constructor Summary
ConstructorDescriptionAppliedGlobalFragment
(String currentToken, QueryTokenizer qt, String schema) Creates an instance for a global fragment, that has been read in the currentQueryTokenizer
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendToGraphQLRequests
(StringBuilder sb, Map<String, Object> parameters) Appends to the givenStringBuilder
this fragment usage ("...fragmentName") followed by the directive declarations, if any
-
Constructor Details
-
AppliedGlobalFragment
public AppliedGlobalFragment(String currentToken, QueryTokenizer qt, String schema) throws GraphQLRequestPreparationException Creates an instance for a global fragment, that has been read in the currentQueryTokenizer
. The token of thisQueryTokenizer
that has just been read is the fragment declaration (...fragmentName).- Parameters:
currentToken
- The fragment declaration that has just been read in qt, for instance ...fragmentNameqt
-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 Details
-
appendToGraphQLRequests
public void appendToGraphQLRequests(StringBuilder sb, Map<String, Object> parameters) throws GraphQLRequestExecutionExceptionAppends to the givenStringBuilder
this fragment usage ("...fragmentName") followed by the directive declarations, if any- Parameters:
sb
-parameters
-- Throws:
GraphQLRequestExecutionException
-