Package org.allGraphQLCases.client2
Class MyQueryType
java.lang.Object
org.allGraphQLCases.client2.MyQueryType
- All Implemented Interfaces:
com.graphql_java_generator.client.GraphQLRequestObject
public class MyQueryType
extends Object
implements com.graphql_java_generator.client.GraphQLRequestObject
This is a description to describe the type MyQueryType
on two lines
- Author:
- generated by graphql-java-generator
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe Builder that helps building instance of this POJO. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MyQueryType.Builderbuilder()Check for GraphQL identifier that are java keywordsgetAliasValue(String alias) Retrieves the value for the given alias, as it has been received for this object in the GraphQL response.################################################################################ # Complementary tests with the AllFieldCases Object# Returns the value, and potentially the anotherValue of the @testDirective directive set on the @directiveOnQuery# Returns the value, and potentially the anotherValue of the @testDirective directive set on the directiveOnQuery querytest for issue #139 (use of java reserved keyword)getError()################################################################################ # error always returns an error!com.fasterxml.jackson.databind.JsonNodeReturns the extensions as a map.<T> TgetExtensionsField(String key, Class<T> t) Parse the value for the given _key_, as found in the extensions field of the GraphQL server's response, into the given _t_ class.test for issue #140 (error for type that implements multiple interfaces)getIf()Test for PR 177 (on server side, the returned value is the content of the if input parameter)getInt()test for issue #128 (compilation error when a Query returns a type 'Client')Issue 217: issue when a field name starts with an uppercase letter#issue53 is about custom scalars as parameter for a query/mutation/subscription, that was not properly serialized/deserialized#issue82 is about hard coded values as parameters.com.fasterxml.jackson.databind.node.ObjectNodegetJson()Test of JSON scalar, for issue #205List<com.fasterxml.jackson.databind.node.ObjectNode>getJsons()getLong()getNew()getNull()Issue #188: null is not identified as a java keywordgetRelay()getShort()getSuper()byte[]Test for issue #174: a custom scalar which Java type is an arraygetThis()getThrow()getTry()################################################################################ # Test for unionsgetVoid()getWhile()################################################################################ # withList return a list of Characters, matching the given list of CharacterInputThis is a description to describe the field withoutParameters on two linesvoidset__schema(__Schema __schema) voidvoidset__typename(String __typename) voidCheck for GraphQL identifier that are java keywordsvoidsetAliasValue(String aliasName, Object aliasDeserializedValue) This method is called during the json deserialization process, by theGraphQLObjectMapper, each time an alias value is read from the json.voidsetAllFieldCases(AllFieldCases allFieldCases) ################################################################################ # Complementary tests with the AllFieldCases ObjectvoidsetCheckOverriddenController(String checkOverriddenController) voidsetConnectionOnHuman(HumanConnection connectionOnHuman) voidsetConnectionWithoutParameters(CharacterConnection connectionWithoutParameters) voidsetDirectiveOnField(Character directiveOnField) # Returns the value, and potentially the anotherValue of the @testDirective directive set on the @directiveOnQueryvoidsetDirectiveOnQuery(List<String> directiveOnQuery) # Returns the value, and potentially the anotherValue of the @testDirective directive set on the directiveOnQuery queryvoidsetEnumWithReservedJavaKeywordAsValues(EnumWithReservedJavaKeywordAsValues enumWithReservedJavaKeywordAsValues) test for issue #139 (use of java reserved keyword)void################################################################################ # error always returns an error!voidsetExtensions(com.fasterxml.jackson.databind.JsonNode extensionsParam) voidtest for issue #140 (error for type that implements multiple interfaces)voidvoidsetImplements(String _implements) Test for PR 177 (on server side, the returned value is the content of the if input parameter)voidvoidsetInstanceof(String _instanceof) voidvoidsetInterface(String _interface) voidsetIssue128(Client issue128) test for issue #128 (compilation error when a Query returns a type 'Client')voidsetIssue200(Boolean issue200) voidsetIssue217(String Issue217) Issue 217: issue when a field name starts with an uppercase lettervoidsetIssue53(Date issue53) #issue53 is about custom scalars as parameter for a query/mutation/subscription, that was not properly serialized/deserializedvoidsetIssue82Float(Double issue82Float) #issue82 is about hard coded values as parameters.voidsetIssue82ID(String issue82ID) voidsetJson(com.fasterxml.jackson.databind.node.ObjectNode json) Test of JSON scalar, for issue #205voidvoidsetJsonsWithInput(List<TypeWithJson> jsonsWithInput) voidsetJsonWithInput(TypeWithJson jsonWithInput) voidsetListOfEnumWithReservedJavaKeywordAsValues(List<EnumWithReservedJavaKeywordAsValues> listOfEnumWithReservedJavaKeywordAsValues) voidvoidvoidvoidIssue #188: null is not identified as a java keywordvoidvoidsetObjects(List<Object> objects) voidsetObjectsWithInput(List<TypeWithObject> objectsWithInput) voidsetObjectWithInput(TypeWithObject objectWithInput) voidsetPackage(String _package) voidsetPrivate(String _private) voidsetProtected(String _protected) voidvoidsetRelay(MyQueryType relay) voidsetReservedJavaKeywordAllFieldCases(ReservedJavaKeywordAllFieldCases reservedJavaKeywordAllFieldCases) voidvoidsetReturnEnum(EnumWithReservedJavaKeywordAsValues returnEnum) voidsetReturnListOfEnums(List<EnumWithReservedJavaKeywordAsValues> returnListOfEnums) voidsetReturnListOfListOfEnums(List<List<EnumWithReservedJavaKeywordAsValues>> returnListOfListOfEnums) voidsetReturnListOfMandatoryEnums(List<EnumWithReservedJavaKeywordAsValues> returnListOfMandatoryEnums) voidsetReturnMandatoryEnum(EnumWithReservedJavaKeywordAsValues returnMandatoryEnum) voidsetReturnMandatoryListOfEnums(List<EnumWithReservedJavaKeywordAsValues> returnMandatoryListOfEnums) voidsetReturnMandatoryListOfMandatoryEnums(List<EnumWithReservedJavaKeywordAsValues> returnMandatoryListOfMandatoryEnums) voidvoidvoidsetStrictfp(String _strictfp) voidvoidvoidsetSynchronized(String _synchronized) voidsetTestBase64String(byte[] testBase64String) Test for issue #174: a custom scalar which Java type is an arrayvoidvoidvoidvoidsetTransient(String _transient) voidvoidsetUnionTest(List<AnyCharacter> unionTest) ################################################################################ # Test for unionsvoidvoidsetVolatile(String _volatile) voidvoidsetWithEnum(Character withEnum) voidsetWithList(List<Character> withList) ################################################################################ # withList return a list of Characters, matching the given list of CharacterInputvoidsetWithListOfList(AllFieldCases withListOfList) voidsetWithOneMandatoryParam(Character withOneMandatoryParam) voidsetWithOneMandatoryParamDefaultValue(Integer withOneMandatoryParamDefaultValue) voidsetWithOneOptionalParam(Character withOneOptionalParam) voidsetWithoutParameters(List<Character> withoutParameters) This is a description to describe the field withoutParameters on two linesvoidsetWithTwoMandatoryParamDefaultVal(Droid withTwoMandatoryParamDefaultVal) toString()
-
Constructor Details
-
MyQueryType
public MyQueryType()
-
-
Method Details
-
setWithoutParameters
This is a description to describe the field withoutParameters on two lines -
getWithoutParameters
This is a description to describe the field withoutParameters on two lines -
setWithOneOptionalParam
-
getWithOneOptionalParam
-
setWithOneMandatoryParam
-
getWithOneMandatoryParam
-
setWithOneMandatoryParamDefaultValue
-
getWithOneMandatoryParamDefaultValue
-
setWithTwoMandatoryParamDefaultVal
-
getWithTwoMandatoryParamDefaultVal
-
setWithEnum
-
getWithEnum
-
setWithListOfList
-
getWithListOfList
-
setWithList
################################################################################ # withList return a list of Characters, matching the given list of CharacterInput. # The name of the first Character returned is replaced by the given firstName. # All ids are generated -
getWithList
################################################################################ # withList return a list of Characters, matching the given list of CharacterInput. # The name of the first Character returned is replaced by the given firstName. # All ids are generated -
setAllFieldCases
################################################################################ # Complementary tests with the AllFieldCases Object -
getAllFieldCases
################################################################################ # Complementary tests with the AllFieldCases Object -
setUnionTest
################################################################################ # Test for unions -
getUnionTest
################################################################################ # Test for unions -
setError
################################################################################ # error always returns an error! (used to check the error management) -
getError
################################################################################ # error always returns an error! (used to check the error management) -
setABreak
Check for GraphQL identifier that are java keywords -
getABreak
Check for GraphQL identifier that are java keywords -
setDirectiveOnQuery
# Returns the value, and potentially the anotherValue of the @testDirective directive set on the directiveOnQuery query. # List is null if the directive is not present. -
getDirectiveOnQuery
# Returns the value, and potentially the anotherValue of the @testDirective directive set on the directiveOnQuery query. # List is null if the directive is not present. -
setDirectiveOnField
# Returns the value, and potentially the anotherValue of the @testDirective directive set on the @directiveOnQuery. # List is null if the directive is not present. -
getDirectiveOnField
# Returns the value, and potentially the anotherValue of the @testDirective directive set on the @directiveOnQuery. # List is null if the directive is not present. -
setReturnEnum
-
getReturnEnum
-
setReturnMandatoryEnum
-
getReturnMandatoryEnum
-
setReturnListOfEnums
-
getReturnListOfEnums
-
setReturnListOfListOfEnums
public void setReturnListOfListOfEnums(List<List<EnumWithReservedJavaKeywordAsValues>> returnListOfListOfEnums) -
getReturnListOfListOfEnums
-
setReturnListOfMandatoryEnums
public void setReturnListOfMandatoryEnums(List<EnumWithReservedJavaKeywordAsValues> returnListOfMandatoryEnums) -
getReturnListOfMandatoryEnums
-
setReturnMandatoryListOfEnums
public void setReturnMandatoryListOfEnums(List<EnumWithReservedJavaKeywordAsValues> returnMandatoryListOfEnums) -
getReturnMandatoryListOfEnums
-
setReturnMandatoryListOfMandatoryEnums
public void setReturnMandatoryListOfMandatoryEnums(List<EnumWithReservedJavaKeywordAsValues> returnMandatoryListOfMandatoryEnums) -
getReturnMandatoryListOfMandatoryEnums
-
setConnectionWithoutParameters
-
getConnectionWithoutParameters
-
setConnectionOnHuman
-
getConnectionOnHuman
-
setCheckOverriddenController
-
getCheckOverriddenController
-
setIssue53
#issue53 is about custom scalars as parameter for a query/mutation/subscription, that was not properly serialized/deserialized -
getIssue53
#issue53 is about custom scalars as parameter for a query/mutation/subscription, that was not properly serialized/deserialized -
setIssue200
-
getIssue200
-
setIssue82Float
#issue82 is about hard coded values as parameters. Other types are tests with other queries, but there was no method with a simple float parameter -
getIssue82Float
#issue82 is about hard coded values as parameters. Other types are tests with other queries, but there was no method with a simple float parameter -
setIssue82ID
-
getIssue82ID
-
setIssue217
Issue 217: issue when a field name starts with an uppercase letter -
getIssue217
Issue 217: issue when a field name starts with an uppercase letter -
setIssue128
test for issue #128 (compilation error when a Query returns a type 'Client') -
getIssue128
test for issue #128 (compilation error when a Query returns a type 'Client') -
setEnumWithReservedJavaKeywordAsValues
public void setEnumWithReservedJavaKeywordAsValues(EnumWithReservedJavaKeywordAsValues enumWithReservedJavaKeywordAsValues) test for issue #139 (use of java reserved keyword) -
getEnumWithReservedJavaKeywordAsValues
test for issue #139 (use of java reserved keyword) -
setListOfEnumWithReservedJavaKeywordAsValues
public void setListOfEnumWithReservedJavaKeywordAsValues(List<EnumWithReservedJavaKeywordAsValues> listOfEnumWithReservedJavaKeywordAsValues) -
getListOfEnumWithReservedJavaKeywordAsValues
-
setReservedJavaKeywordAllFieldCases
public void setReservedJavaKeywordAllFieldCases(ReservedJavaKeywordAllFieldCases reservedJavaKeywordAllFieldCases) -
getReservedJavaKeywordAllFieldCases
-
setIf
-
getIf
-
setImplements
Test for PR 177 (on server side, the returned value is the content of the if input parameter) -
getImplements
Test for PR 177 (on server side, the returned value is the content of the if input parameter) -
setImport
-
getImport
-
setInstanceof
-
getInstanceof
-
setInt
-
getInt
-
setInterface
-
getInterface
-
setLong
-
getLong
-
setNative
-
getNative
-
setNew
-
getNew
-
setNull
Issue #188: null is not identified as a java keyword -
getNull
Issue #188: null is not identified as a java keyword -
setPackage
-
getPackage
-
setPrivate
-
getPrivate
-
setProtected
-
getProtected
-
setPublic
-
getPublic
-
setReturn
-
getReturn
-
setShort
-
getShort
-
setStatic
-
getStatic
-
setStrictfp
-
getStrictfp
-
setSuper
-
getSuper
-
setSwitch
-
getSwitch
-
setSynchronized
-
getSynchronized
-
setThis
-
getThis
-
setThrow
-
getThrow
-
setThrows
-
getThrows
-
setTransient
-
getTransient
-
setTry
-
getTry
-
setVoid
-
getVoid
-
setVolatile
-
getVolatile
-
setWhile
-
getWhile
-
setFoo140
test for issue #140 (error for type that implements multiple interfaces) -
getFoo140
test for issue #140 (error for type that implements multiple interfaces) -
setTestBase64String
public void setTestBase64String(byte[] testBase64String) Test for issue #174: a custom scalar which Java type is an array -
getTestBase64String
public byte[] getTestBase64String()Test for issue #174: a custom scalar which Java type is an array -
setJson
public void setJson(com.fasterxml.jackson.databind.node.ObjectNode json) Test of JSON scalar, for issue #205 -
getJson
public com.fasterxml.jackson.databind.node.ObjectNode getJson()Test of JSON scalar, for issue #205 -
setJsons
-
getJsons
-
setJsonWithInput
-
getJsonWithInput
-
setJsonsWithInput
-
getJsonsWithInput
-
setObject
-
getObject
-
setObjects
-
getObjects
-
setObjectWithInput
-
getObjectWithInput
-
setObjectsWithInput
-
getObjectsWithInput
-
setRelay
-
getRelay
-
set__schema
-
get__schema
-
set__type
-
get__type
-
set__typename
-
get__typename
-
setAliasValue
This method is called during the json deserialization process, by theGraphQLObjectMapper, each time an alias value is read from the json.- Parameters:
aliasName-aliasDeserializedValue-
-
getAliasValue
Retrieves the value for the given alias, as it has been received for this object in the GraphQL response.
This method should not be used for Custom Scalars, as the parser doesn't know if this alias is a custom scalar, and which custom scalar to use at deserialization time. In most case, a value will then be provided by this method with a basis json deserialization, but this value won't be the proper custom scalar value.- Parameters:
alias-- Returns:
-
toString
-
builder
-
getExtensions
public com.fasterxml.jackson.databind.JsonNode getExtensions() -
setExtensions
public void setExtensions(com.fasterxml.jackson.databind.JsonNode extensionsParam) - Specified by:
setExtensionsin interfacecom.graphql_java_generator.client.GraphQLRequestObject
-
getExtensionsAsMap
Returns the extensions as a map. The values can't be deserialized, as their type is unknown.- Returns:
-
getExtensionsField
public <T> T getExtensionsField(String key, Class<T> t) throws com.fasterxml.jackson.core.JsonProcessingException Parse the value for the given _key_, as found in the extensions field of the GraphQL server's response, into the given _t_ class.- Type Parameters:
T-- Parameters:
key-t-- Returns:
- null if the key is not in the extensions map. Otherwise: the value for this _key_, as a _t_ instance
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- When there is an error when converting the key's value into the _t_ class
-