Class CTP_TFoo1_CTS
java.lang.Object
org.junittest.allgraphqlcases_client_springconfiguration.CTP_TFoo1_CTS
- All Implemented Interfaces:
AllInterfaces1,AllInterfaces2,AllTypes1,AllTypes2,CIP_IFoo1_CIS
TFoo1 is the basic test case, for issue #114
- Author:
- generated by graphql-java-generator
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe Builder that helps building instance of this POJO. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CTP_TFoo1_CTS.Builderbuilder()getAliasValue(String alias) Retrieves the value for the given alias, as it has been received for this object in the GraphQL response.getBar()The 'bar' field is a valid GraphQL field.getId()voidset__typename(String __typename) voidsetAliasValue(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.voidsetBar(CIP_IBar1_CIS bar) The 'bar' field is a valid GraphQL field.voidsetBar(CTP_TBar1_CTS bar) The 'bar' field is a valid GraphQL field.voidtoString()
-
Constructor Details
-
CTP_TFoo1_CTS
public CTP_TFoo1_CTS()
-
-
Method Details
-
setId
- Specified by:
setIdin interfaceCIP_IFoo1_CIS
-
getId
- Specified by:
getIdin interfaceCIP_IFoo1_CIS
-
setBar
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:
setBarin interfaceCIP_IFoo1_CIS
-
setBar
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
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:
getBarin interfaceCIP_IFoo1_CIS
-
set__typename
- Specified by:
set__typenamein interfaceCIP_IFoo1_CIS
-
get__typename
- Specified by:
get__typenamein interfaceCIP_IFoo1_CIS
-
setAliasValue
This method is called during the json deserialization process, by theGraphQLObjectMapper, each time an alias value is read from the json.- Specified by:
setAliasValuein interfaceCIP_IFoo1_CIS- 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.- Specified by:
getAliasValuein interfaceCIP_IFoo1_CIS- Parameters:
alias-- Returns:
-
toString
-
builder
-