Class TFoo12
java.lang.Object
com.graphql_java_generator.domain.client.allGraphQLCases.TFoo12
TFoo12 is a more complex one, with more than one interface implemented
- 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 TFoo12.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.voidThe 'bar' field is a valid GraphQL field.voidThe 'bar' field is a valid GraphQL field.voidAs the type declared in the class is not inherited from one of the implemented interfaces, we need a dedicated setter.voidtoString()
-
Constructor Details
-
TFoo12
public TFoo12()
-
-
Method Details
-
setId
-
getId
-
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) -
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) -
setBar
As the type declared in the class is not inherited from one of the implemented interfaces, we need a dedicated setter.- Parameters:
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)
-
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) -
set__typename
- Specified by:
set__typenamein interfaceIFoo1- Specified by:
set__typenamein interfaceIFoo2
-
get__typename
- Specified by:
get__typenamein interfaceIFoo1- Specified by:
get__typenamein interfaceIFoo2
-
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 interfaceIFoo1- Specified by:
setAliasValuein interfaceIFoo2- 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 interfaceIFoo1- Specified by:
getAliasValuein interfaceIFoo2- Parameters:
alias-- Returns:
-
toString
-
builder
-