Package org.allGraphQLCases.client
Class CTP_MyQueryType_CTS
java.lang.Object
org.allGraphQLCases.client.CTP_MyQueryType_CTS
- All Implemented Interfaces:
GraphQLRequestObject
,AllTypes1
,AllTypes2
- Direct Known Subclasses:
MyQueryTypeResponse
public class CTP_MyQueryType_CTS
extends Object
implements AllTypes2, AllTypes1, 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 CTP_MyQueryType_CTS.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')#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
(CTP___Schema_CTS __schema) void
set__type
(CTP___Type_CTS __type) void
set__typename
(String __typename) void
setABreak
(CTP_break_CTS aBreak) 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
(CTP_AllFieldCases_CTS allFieldCases) ################################################################################ # Complementary tests with the AllFieldCases Objectvoid
setCheckOverriddenController
(String checkOverriddenController) void
setConnectionOnHuman
(CTP_HumanConnection_CTS connectionOnHuman) void
setConnectionWithoutParameters
(CIP_CharacterConnection_CIS connectionWithoutParameters) void
setDirectiveOnField
(CIP_Character_CIS 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
(CEP_EnumWithReservedJavaKeywordAsValues_CES enumWithReservedJavaKeywordAsValues) test for issue #139 (use of java reserved keyword)void
setError
(CIP_Character_CIS error) ################################################################################ # error always returns an error!void
setExtensions
(com.fasterxml.jackson.databind.JsonNode extensionsParam) void
setFoo140
(CTP_Foo140_CTS foo140) 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
(CIP_Client_CIS issue128) test for issue #128 (compilation error when a Query returns a type 'Client')void
setIssue200
(Boolean issue200) void
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<CTP_TypeWithJson_CTS> jsonsWithInput) void
setJsonWithInput
(CTP_TypeWithJson_CTS jsonWithInput) void
setListOfEnumWithReservedJavaKeywordAsValues
(List<CEP_EnumWithReservedJavaKeywordAsValues_CES> listOfEnumWithReservedJavaKeywordAsValues) void
void
void
void
Issue #188: null is not identified as a java keywordvoid
void
setObjects
(List<Object> objects) void
setObjectsWithInput
(List<CTP_TypeWithObject_CTS> objectsWithInput) void
setObjectWithInput
(CTP_TypeWithObject_CTS objectWithInput) void
setPackage
(String _package) void
setPrivate
(String _private) void
setProtected
(String _protected) void
void
setRelay
(CTP_MyQueryType_CTS relay) void
setReservedJavaKeywordAllFieldCases
(CTP_ReservedJavaKeywordAllFieldCases_CTS reservedJavaKeywordAllFieldCases) void
void
void
setReturnListOfEnums
(List<CEP_EnumWithReservedJavaKeywordAsValues_CES> returnListOfEnums) void
setReturnListOfListOfEnums
(List<List<CEP_EnumWithReservedJavaKeywordAsValues_CES>> returnListOfListOfEnums) void
setReturnListOfMandatoryEnums
(List<CEP_EnumWithReservedJavaKeywordAsValues_CES> returnListOfMandatoryEnums) void
setReturnMandatoryEnum
(CEP_EnumWithReservedJavaKeywordAsValues_CES returnMandatoryEnum) void
setReturnMandatoryListOfEnums
(List<CEP_EnumWithReservedJavaKeywordAsValues_CES> returnMandatoryListOfEnums) void
setReturnMandatoryListOfMandatoryEnums
(List<CEP_EnumWithReservedJavaKeywordAsValues_CES> 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<CUP_AnyCharacter_CUS> unionTest) ################################################################################ # Test for unionsvoid
void
setVolatile
(String _volatile) void
void
setWithEnum
(CIP_Character_CIS withEnum) void
setWithList
(List<CIP_Character_CIS> withList) ################################################################################ # withList return a list of Characters, matching the given list of CharacterInputvoid
setWithListOfList
(CTP_AllFieldCases_CTS withListOfList) void
setWithOneMandatoryParam
(CIP_Character_CIS withOneMandatoryParam) void
setWithOneMandatoryParamDefaultValue
(Integer withOneMandatoryParamDefaultValue) void
setWithOneOptionalParam
(CIP_Character_CIS withOneOptionalParam) void
setWithoutParameters
(List<CIP_Character_CIS> withoutParameters) This is a description to describe the field withoutParameters on two linesvoid
setWithTwoMandatoryParamDefaultVal
(CTP_Droid_CTS withTwoMandatoryParamDefaultVal) toString()
-
Constructor Details
-
CTP_MyQueryType_CTS
public CTP_MyQueryType_CTS()
-
-
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
public void setReturnListOfEnums(List<CEP_EnumWithReservedJavaKeywordAsValues_CES> returnListOfEnums) -
getReturnListOfEnums
-
setReturnListOfListOfEnums
public void setReturnListOfListOfEnums(List<List<CEP_EnumWithReservedJavaKeywordAsValues_CES>> returnListOfListOfEnums) -
getReturnListOfListOfEnums
-
setReturnListOfMandatoryEnums
public void setReturnListOfMandatoryEnums(List<CEP_EnumWithReservedJavaKeywordAsValues_CES> returnListOfMandatoryEnums) -
getReturnListOfMandatoryEnums
-
setReturnMandatoryListOfEnums
public void setReturnMandatoryListOfEnums(List<CEP_EnumWithReservedJavaKeywordAsValues_CES> returnMandatoryListOfEnums) -
getReturnMandatoryListOfEnums
-
setReturnMandatoryListOfMandatoryEnums
public void setReturnMandatoryListOfMandatoryEnums(List<CEP_EnumWithReservedJavaKeywordAsValues_CES> 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
-
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(CEP_EnumWithReservedJavaKeywordAsValues_CES 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<CEP_EnumWithReservedJavaKeywordAsValues_CES> listOfEnumWithReservedJavaKeywordAsValues) -
getListOfEnumWithReservedJavaKeywordAsValues
public List<CEP_EnumWithReservedJavaKeywordAsValues_CES> getListOfEnumWithReservedJavaKeywordAsValues() -
setReservedJavaKeywordAllFieldCases
public void setReservedJavaKeywordAllFieldCases(CTP_ReservedJavaKeywordAllFieldCases_CTS 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
-