Class GraphQLInterfaceBuilderImpl
java.lang.Object
se.l4.graphql.binding.internal.builders.GraphQLInterfaceBuilderImpl
- All Implemented Interfaces:
GraphQLInterfaceBuilder
public class GraphQLInterfaceBuilderImpl extends Object implements GraphQLInterfaceBuilder
-
Constructor Summary
Constructors Constructor Description GraphQLInterfaceBuilderImpl(List<GraphQLObjectMixin> mixins, GraphQLResolverContext context)
-
Method Summary
Modifier and Type Method Description GraphQLInterfaceBuilder
addImplementation(se.l4.commons.types.reflect.TypeRef type)
Add an implementation of this interface.graphql.schema.GraphQLInterfaceType
build()
Build the object type.GraphQLFieldBuilder<GraphQLInterfaceBuilder>
newField()
Define a new field for this object.GraphQLInterfaceBuilder
over(se.l4.commons.types.reflect.TypeRef type)
Set theTypeRef
this object is based on.GraphQLInterfaceBuilder
setDescription(String description)
Set the description of the object.GraphQLInterfaceBuilder
setName(String name)
Set the name of the object.
-
Constructor Details
-
GraphQLInterfaceBuilderImpl
public GraphQLInterfaceBuilderImpl(List<GraphQLObjectMixin> mixins, GraphQLResolverContext context)
-
-
Method Details
-
over
Description copied from interface:GraphQLInterfaceBuilder
Set theTypeRef
this object is based on. Will copy name and description from the type.- Specified by:
over
in interfaceGraphQLInterfaceBuilder
- Returns:
-
setName
Description copied from interface:GraphQLInterfaceBuilder
Set the name of the object.- Specified by:
setName
in interfaceGraphQLInterfaceBuilder
- Returns:
-
setDescription
Description copied from interface:GraphQLInterfaceBuilder
Set the description of the object.- Specified by:
setDescription
in interfaceGraphQLInterfaceBuilder
-
newField
Description copied from interface:GraphQLInterfaceBuilder
Define a new field for this object.- Specified by:
newField
in interfaceGraphQLInterfaceBuilder
- Returns:
-
addImplementation
Description copied from interface:GraphQLInterfaceBuilder
Add an implementation of this interface.- Specified by:
addImplementation
in interfaceGraphQLInterfaceBuilder
- Returns:
-
build
public graphql.schema.GraphQLInterfaceType build()Description copied from interface:GraphQLInterfaceBuilder
Build the object type.- Specified by:
build
in interfaceGraphQLInterfaceBuilder
-