Package org.allGraphQLCases.client2
Class TheSubscriptionType
java.lang.Object
org.allGraphQLCases.client2.TheSubscriptionType
- All Implemented Interfaces:
GraphQLRequestObject
A mono line description for TheSubscriptionType
- 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 TheSubscriptionType.Builder
builder()
getAliasValue
(String alias) Retrieves the value for the given alias, as it has been received for this object in the GraphQL response.Some subscriptions to test all kind of input parameters (to check proper serialization and deserialization)test for issue #139 (use of java reserved keyword)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.getIf()
issue53 is about custom scalars as parameter for a query/mutation/subscription, that was not properly serialized/deserializedcom.fasterxml.jackson.databind.node.ObjectNode
getJson()
Test of JSON scalar, for issue #205List<com.fasterxml.jackson.databind.node.ObjectNode>
getJsons()
getNull()
Issue #188: null is not identified as a java keywordWill be notified for each Human added to this EpisodeIssue 54A dummy subscription, that allows to test errors (and other strange behavior), and their return to the subscription's clientIssue 122: Check Subscription behavior when notification response is nullvoid
set__typename
(String __typename) void
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
setAllGraphQLCasesInput
(AllFieldCases allGraphQLCasesInput) Some subscriptions to test all kind of input parameters (to check proper serialization and deserialization)void
setAllGraphQLCasesParam
(AllFieldCases allGraphQLCasesParam) void
setEnumWithReservedJavaKeywordAsValues
(EnumWithReservedJavaKeywordAsValues enumWithReservedJavaKeywordAsValues) test for issue #139 (use of java reserved keyword)void
setExtensions
(com.fasterxml.jackson.databind.JsonNode extensionsParam) void
void
setImplements
(String _implements) void
setIssue53
(Date issue53) issue53 is about custom scalars as parameter for a query/mutation/subscription, that was not properly serialized/deserializedvoid
setJson
(com.fasterxml.jackson.databind.node.ObjectNode json) Test of JSON scalar, for issue #205void
void
setJsonsWithInput
(List<TypeWithJson> jsonsWithInput) void
setListOfEnumWithReservedJavaKeywordAsValues
(List<EnumWithReservedJavaKeywordAsValues> listOfEnumWithReservedJavaKeywordAsValues) void
Issue #188: null is not identified as a java keywordvoid
setObjectsWithInput
(List<TypeWithObject> objectsWithInput) 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
setSubscribeNewHumanForEpisode
(Human subscribeNewHumanForEpisode) Will be notified for each Human added to this Episodevoid
setSubscribeToAList
(List<Integer> subscribeToAList) Issue 54void
setSubscribeToAListOfScalars
(List<Date> subscribeToAListOfScalars) void
setSubscriptionTest
(String subscriptionTest) A dummy subscription, that allows to test errors (and other strange behavior), and their return to the subscription's clientvoid
setSubscriptionWithNullResponse
(String subscriptionWithNullResponse) Issue 122: Check Subscription behavior when notification response is nulltoString()
-
Constructor Details
-
TheSubscriptionType
public TheSubscriptionType()
-
-
Method Details
-
setSubscribeNewHumanForEpisode
Will be notified for each Human added to this Episode -
getSubscribeNewHumanForEpisode
Will be notified for each Human added to this Episode -
setSubscribeToAList
Issue 54 -
getSubscribeToAList
Issue 54 -
setSubscribeToAListOfScalars
-
getSubscribeToAListOfScalars
-
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 -
setAllGraphQLCasesInput
Some subscriptions to test all kind of input parameters (to check proper serialization and deserialization) -
getAllGraphQLCasesInput
Some subscriptions to test all kind of input parameters (to check proper serialization and deserialization) -
setAllGraphQLCasesParam
-
getAllGraphQLCasesParam
-
setSubscriptionTest
A dummy subscription, that allows to test errors (and other strange behavior), and their return to the subscription's client -
getSubscriptionTest
A dummy subscription, that allows to test errors (and other strange behavior), and their return to the subscription's client -
setReturnEnum
-
getReturnEnum
-
setReturnMandatoryEnum
-
getReturnMandatoryEnum
-
setReturnListOfEnums
-
getReturnListOfEnums
-
setReturnListOfMandatoryEnums
public void setReturnListOfMandatoryEnums(List<EnumWithReservedJavaKeywordAsValues> returnListOfMandatoryEnums) -
getReturnListOfMandatoryEnums
-
setReturnListOfListOfEnums
public void setReturnListOfListOfEnums(List<List<EnumWithReservedJavaKeywordAsValues>> returnListOfListOfEnums) -
getReturnListOfListOfEnums
-
setReturnMandatoryListOfEnums
public void setReturnMandatoryListOfEnums(List<EnumWithReservedJavaKeywordAsValues> returnMandatoryListOfEnums) -
getReturnMandatoryListOfEnums
-
setReturnMandatoryListOfMandatoryEnums
public void setReturnMandatoryListOfMandatoryEnums(List<EnumWithReservedJavaKeywordAsValues> returnMandatoryListOfMandatoryEnums) -
getReturnMandatoryListOfMandatoryEnums
-
setSubscriptionWithNullResponse
Issue 122: Check Subscription behavior when notification response is null -
getSubscriptionWithNullResponse
Issue 122: Check Subscription behavior when notification response is null -
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
-
setIf
-
getIf
-
setImplements
-
getImplements
-
setNull
Issue #188: null is not identified as a java keyword -
getNull
Issue #188: null is not identified as a java keyword -
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
-
setJsonsWithInput
-
getJsonsWithInput
-
setObjectsWithInput
-
getObjectsWithInput
-
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
-