Class UnionType
java.lang.Object
com.graphql_java_generator.plugin.language.impl.AbstractType
com.graphql_java_generator.plugin.language.impl.ObjectType
com.graphql_java_generator.plugin.language.impl.UnionType
- All Implemented Interfaces:
Type
This class represents an Union, as defined in a GraphQL schema. In the generated classes, this needs to be an
interface, as an object type may be in several unions.
- Author:
- etienne-sf
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.graphql_java_generator.plugin.language.Type
Type.GraphQlType, Type.TargetFileType
-
Constructor Summary
ConstructorDescriptionUnionType
(String name, CommonConfiguration configuration, DocumentParser documentParser) -
Method Summary
Methods inherited from class com.graphql_java_generator.plugin.language.impl.ObjectType
getIdentifier, getImplementedTypes, getPackageName, getRequestTypePascalCase, isCustomScalar, isScalar
Methods inherited from class com.graphql_java_generator.plugin.language.impl.AbstractType
addAnnotation, addAnnotation, addImport, addImportForUtilityClasses, getAnnotation, getCamelCaseName, getClassSimpleName, getGraphQlType, getJavaName, setAnnotation, setComments
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.graphql_java_generator.plugin.language.Type
getAppliedDirectives, getClassFullName, getComments, getDataFetcher, getDescription, getField, getFields, getImports, getImportsForUtilityClasses, getName, getRequestType, getTargetFileName, isEnum, isInputType
-
Constructor Details
-
UnionType
- Parameters:
name
- the name for this typeconfiguration
- The current plugin configuration, which is accessible through an interface that extendsCommonConfiguration
documentParser
- TheDocumentParser
that has parsed the schema, and so that contains the whole schema definition
-
-
Method Details
-
getPrefix
- Overrides:
getPrefix
in classObjectType
-
getSuffix
- Overrides:
getSuffix
in classObjectType
-
toString
- Overrides:
toString
in classObjectType
-