Class AppliedGlobalFragment
- java.lang.Object
-
- com.graphql_java_generator.client.request.AppliedGlobalFragment
-
public class AppliedGlobalFragment extends java.lang.ObjectA 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 currentQueryTokenizer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendToGraphQLRequests(java.lang.StringBuilder sb, java.util.Map<java.lang.String,java.lang.Object> parameters)Appends to the givenStringBuilderthis fragment usage ("...fragmentName") followed by the directive declarations, if any
-
-
-
Constructor Detail
-
AppliedGlobalFragment
public AppliedGlobalFragment(java.lang.String currentToken, QueryTokenizer qt, java.lang.String schema) throws GraphQLRequestPreparationExceptionCreates an instance for a global fragment, that has been read in the currentQueryTokenizer. The token of thisQueryTokenizerthat 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 Detail
-
appendToGraphQLRequests
public void appendToGraphQLRequests(java.lang.StringBuilder sb, java.util.Map<java.lang.String,java.lang.Object> parameters) throws GraphQLRequestExecutionExceptionAppends to the givenStringBuilderthis fragment usage ("...fragmentName") followed by the directive declarations, if any- Parameters:
sb-parameters-- Throws:
GraphQLRequestExecutionException
-
-