Class GraphQLObjectMapperTestClass

java.lang.Object
com.graphql_java_generator.client.GraphQLObjectMapperTestClass

public class GraphQLObjectMapperTestClass extends Object
This class is used for json deserialization test of GraphQL alias values by GraphQLObjectMapperTest
Author:
etienne-sf
  • Field Details

  • Constructor Details

    • GraphQLObjectMapperTestClass

      public GraphQLObjectMapperTestClass()
  • Method Details

    • setAliasValue

      public void setAliasValue(String key, Object value)
    • getAliasValue

      public Object getAliasValue(String alias) throws GraphQLRequestExecutionException
      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