Class GraphQLObjectMapperTestClass
java.lang.Object
com.graphql_java_generator.client.GraphQLObjectMapperTestClass
This class is used for json deserialization test of GraphQL alias values by
GraphQLObjectMapperTest
- Author:
- etienne-sf
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAliasValue
(String alias) Retrieves the value for the given alias, as it has been received for this object in the GraphQL response.void
setAliasValue
(String key, Object value)
-
Field Details
-
date
-
doubleField
-
enumField
-
intField
-
theProperty
-
__typename
-
-
Constructor Details
-
GraphQLObjectMapperTestClass
public GraphQLObjectMapperTestClass()
-
-
Method Details
-
setAliasValue
-
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:
- Throws:
GraphQLRequestExecutionException
- If the value can not be parsed
-