Class CTP_TList_CTS

java.lang.Object
org.allGraphQLCases.client.CTP_TList_CTS
All Implemented Interfaces:
CIP_IList_CIS, AllInterfaces1, AllInterfaces2, AllTypes1, AllTypes2

public class CTP_TList_CTS extends Object implements CIP_IList_CIS, AllTypes2, AllTypes1
Author:
generated by graphql-java-generator
See Also:
  • Constructor Details

    • CTP_TList_CTS

      public CTP_TList_CTS()
  • Method Details

    • setList

      public void setList(List<CIP_IFoo1_CIS> list)
      Specified by:
      setList in interface CIP_IList_CIS
    • setListTFoo1

      public void setListTFoo1(List<CTP_TFoo1_CTS> list)

      As the type declared in the class is not inherited from one of the implemented interfaces, we need a dedicated setter.
      As the GraphQL type of this field is a list of items that are not of the same type as the field defined in the implemented interface, we need to have a dedicated setter with a specific name. This is due to Java that does type erasure on parameterized types (for compatibility reasons with older java versions). As Java can't detect at runtime the type of the items of the list, it can't decide which setter to call. To overcome this issue, this setter has a dedicated name.
    • getList

      public List<CIP_IFoo1_CIS> getList()
      Specified by:
      getList in interface CIP_IList_CIS
    • getListTFoo1

      public List<CTP_TFoo1_CTS> getListTFoo1()
    • set__typename

      public void set__typename(String __typename)
      Specified by:
      set__typename in interface CIP_IList_CIS
    • get__typename

      public String get__typename()
      Specified by:
      get__typename in interface CIP_IList_CIS
    • setAliasValue

      public void setAliasValue(String aliasName, Object aliasDeserializedValue)
      This method is called during the json deserialization process, by the GraphQLObjectMapper, each time an alias value is read from the json.
      Specified by:
      setAliasValue in interface CIP_IList_CIS
      Parameters:
      aliasName -
      aliasDeserializedValue -
    • getAliasValue

      public Object getAliasValue(String alias)
      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.
      Specified by:
      getAliasValue in interface CIP_IList_CIS
      Parameters:
      alias -
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static CTP_TList_CTS.Builder builder()