Class CTP_TFoo12_CTS

java.lang.Object
org.allGraphQLCases.client.CTP_TFoo12_CTS
All Implemented Interfaces:
CIP_IFoo1_CIS, CIP_IFoo2_CIS, AllInterfaces1, AllInterfaces2, AllTypes1, AllTypes2

public class CTP_TFoo12_CTS extends Object implements CIP_IFoo1_CIS, CIP_IFoo2_CIS, AllTypes2, AllTypes1
TFoo12 is a more complex one, with more than one interface implemented
Author:
generated by graphql-java-generator
See Also:
  • Constructor Details

    • CTP_TFoo12_CTS

      public CTP_TFoo12_CTS()
  • Method Details

    • setId

      public void setId(String id)
      Specified by:
      setId in interface CIP_IFoo1_CIS
      Specified by:
      setId in interface CIP_IFoo2_CIS
    • getId

      public String getId()
      Specified by:
      getId in interface CIP_IFoo1_CIS
      Specified by:
      getId in interface CIP_IFoo2_CIS
    • setBar

      public void setBar(CIP_IBar1_CIS bar)
      The 'bar' field is a valid GraphQL field. But before correction of the issue #114, the generated Java code would not compile, as the TBar is a concrete class that implements IBar (and not IBar itself as declared in IFoo)
      Specified by:
      setBar in interface CIP_IFoo1_CIS
    • setBar

      public void setBar(CIP_IBar2_CIS bar)
      The 'bar' field is a valid GraphQL field. But before correction of the issue #114, the generated Java code would not compile, as the TBar is a concrete class that implements IBar (and not IBar itself as declared in IFoo)
      Specified by:
      setBar in interface CIP_IFoo2_CIS
    • setBar

      public void setBar(CTP_TBar12_CTS bar)
      The 'bar' field is a valid GraphQL field. But before correction of the issue #114, the generated Java code would not compile, as the TBar is a concrete class that implements IBar (and not IBar itself as declared in IFoo)
      As the type declared in the class is not inherited from one of the implemented interfaces, we need a dedicated setter.
    • getBar

      public CTP_TBar12_CTS getBar()
      The 'bar' field is a valid GraphQL field. But before correction of the issue #114, the generated Java code would not compile, as the TBar is a concrete class that implements IBar (and not IBar itself as declared in IFoo)
      Specified by:
      getBar in interface CIP_IFoo1_CIS
      Specified by:
      getBar in interface CIP_IFoo2_CIS
    • set__typename

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

      public String get__typename()
      Specified by:
      get__typename in interface CIP_IFoo1_CIS
      Specified by:
      get__typename in interface CIP_IFoo2_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_IFoo1_CIS
      Specified by:
      setAliasValue in interface CIP_IFoo2_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_IFoo1_CIS
      Specified by:
      getAliasValue in interface CIP_IFoo2_CIS
      Parameters:
      alias -
      Returns:
    • toString

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

      public static CTP_TFoo12_CTS.Builder builder()