Package org.allGraphQLCases.client2
Class MyQueryType
java.lang.Object
org.allGraphQLCases.client2.MyQueryType
- All Implemented Interfaces:
GraphQLRequestObject
This is a description to describe the type MyQueryType
on two lines
- Author:
- generated by graphql-java-generator
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The Builder that helps building instance of this POJO. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MyQueryType.Builder
builder()
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.JsonNode
Returns the extensions as a map.<T> T
getExtensionsField
(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.ObjectNode
getJson()
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 linesvoid
set__schema
(__Schema __schema) void
void
set__typename
(String __typename) void
Check for GraphQL identifier that are java keywordsvoid
setAliasValue
(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.void
setAllFieldCases
(AllFieldCases allFieldCases) ################################################################################ # Complementary tests with the AllFieldCases Objectvoid
setCheckOverriddenController
(String checkOverriddenController) void
setConnectionOnHuman
(HumanConnection connectionOnHuman) void
setConnectionWithoutParameters
(CharacterConnection connectionWithoutParameters) void
setDirectiveOnField
(Character directiveOnField) # Returns the value, and potentially the anotherValue of the @testDirective directive set on the @directiveOnQueryvoid
setDirectiveOnQuery
(List<String> directiveOnQuery) # Returns the value, and potentially the anotherValue of the @testDirective directive set on the directiveOnQuery queryvoid
setEnumWithReservedJavaKeywordAsValues
(EnumWithReservedJavaKeywordAsValues enumWithReservedJavaKeywordAsValues) test for issue #139 (use of java reserved keyword)void
################################################################################ # error always returns an error!void
setExtensions
(com.fasterxml.jackson.databind.JsonNode extensionsParam) void
test for issue #140 (error for type that implements multiple interfaces)void
void
setImplements
(String _implements) Test for PR 177 (on server side, the returned value is the content of the if input parameter)void
void
setInstanceof
(String _instanceof) void
void
setInterface
(String _interface) void
setIssue128
(Client issue128) test for issue #128 (compilation error when a Query returns a type 'Client')void
setIssue200
(Boolean issue200) void
setIssue217
(String Issue217) Issue 217: issue when a field name starts with an uppercase lettervoid
setIssue53
(Date issue53) #issue53 is about custom scalars as parameter for a query/mutation/subscription, that was not properly serialized/deserializedvoid
setIssue82Float
(Double issue82Float) #issue82 is about hard coded values as parameters.void
setIssue82ID
(String issue82ID) void
setJson
(com.fasterxml.jackson.databind.node.ObjectNode json) Test of JSON scalar, for issue #205void
void
setJsonsWithInput
(List<TypeWithJson> jsonsWithInput) void
setJsonWithInput
(TypeWithJson jsonWithInput) void
setListOfEnumWithReservedJavaKeywordAsValues
(List<EnumWithReservedJavaKeywordAsValues> listOfEnumWithReservedJavaKeywordAsValues) void
void
void
void
Issue #188: null is not identified as a java keywordvoid
void
setObjects
(List<Object> objects) void
setObjectsWithInput
(List<TypeWithObject> objectsWithInput) void
setObjectWithInput
(TypeWithObject objectWithInput) void
setPackage
(String _package) void
setPrivate
(String _private) void
setProtected
(String _protected) void
void
setRelay
(MyQueryType relay) void
setReservedJavaKeywordAllFieldCases
(ReservedJavaKeywordAllFieldCases reservedJavaKeywordAllFieldCases) void
void
setReturnEnum
(EnumWithReservedJavaKeywordAsValues returnEnum) void
setReturnListOfEnums
(List<EnumWithReservedJavaKeywordAsValues> returnListOfEnums) void
setReturnListOfListOfEnums
(List<List<EnumWithReservedJavaKeywordAsValues>> returnListOfListOfEnums) void
setReturnListOfMandatoryEnums
(List<EnumWithReservedJavaKeywordAsValues> returnListOfMandatoryEnums) void
setReturnMandatoryEnum
(EnumWithReservedJavaKeywordAsValues returnMandatoryEnum) void
setReturnMandatoryListOfEnums
(List<EnumWithReservedJavaKeywordAsValues> returnMandatoryListOfEnums) void
setReturnMandatoryListOfMandatoryEnums
(List<EnumWithReservedJavaKeywordAsValues> returnMandatoryListOfMandatoryEnums) void
void
void
setStrictfp
(String _strictfp) void
void
void
setSynchronized
(String _synchronized) void
setTestBase64String
(byte[] testBase64String) Test for issue #174: a custom scalar which Java type is an arrayvoid
void
void
void
setTransient
(String _transient) void
void
setUnionTest
(List<AnyCharacter> unionTest) ################################################################################ # Test for unionsvoid
void
setVolatile
(String _volatile) void
void
setWithEnum
(Character withEnum) void
setWithList
(List<Character> withList) ################################################################################ # withList return a list of Characters, matching the given list of CharacterInputvoid
setWithListOfList
(AllFieldCases withListOfList) void
setWithOneMandatoryParam
(Character withOneMandatoryParam) void
setWithOneMandatoryParamDefaultValue
(Integer withOneMandatoryParamDefaultValue) void
setWithOneOptionalParam
(Character withOneOptionalParam) void
setWithoutParameters
(List<Character> withoutParameters) This is a description to describe the field withoutParameters on two linesvoid
setWithTwoMandatoryParamDefaultVal
(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:
setExtensions
in interfaceGraphQLRequestObject
-
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
-