Class GraphQLArgumentBuilderImpl<Parent>
java.lang.Object
se.l4.graphql.binding.internal.builders.GraphQLArgumentBuilderImpl<Parent>
- All Implemented Interfaces:
GraphQLArgumentBuilder<Parent>
public class GraphQLArgumentBuilderImpl<Parent> extends Object implements GraphQLArgumentBuilder<Parent>
-
Constructor Summary
Constructors Constructor Description GraphQLArgumentBuilderImpl(GraphQLResolverContext context, Breadcrumb breadcrumb, Parent parent, Consumer<graphql.schema.GraphQLArgument> consumer)
-
Method Summary
Modifier and Type Method Description Parent
done()
Indicate that we are done building this argument.GraphQLArgumentBuilder<Parent>
over(se.l4.commons.types.reflect.ParameterRef parameter)
Set theParameterRef
this argument is based on.GraphQLArgumentBuilder<Parent>
setDefaultValue(Object defaultValue)
Set the default value for this argument.GraphQLArgumentBuilder<Parent>
setDescription(String description)
Set the description of the argument.GraphQLArgumentBuilder<Parent>
setName(String name)
Set the name of the argument.GraphQLArgumentBuilder<Parent>
setType(graphql.schema.GraphQLInputType type)
Set the input type this argument uses.
-
Constructor Details
-
GraphQLArgumentBuilderImpl
public GraphQLArgumentBuilderImpl(GraphQLResolverContext context, Breadcrumb breadcrumb, Parent parent, Consumer<graphql.schema.GraphQLArgument> consumer)
-
-
Method Details
-
over
Description copied from interface:GraphQLArgumentBuilder
Set theParameterRef
this argument is based on. This will copy the name and description from the parameter via annotations.- Specified by:
over
in interfaceGraphQLArgumentBuilder<Parent>
- Returns:
-
setName
Description copied from interface:GraphQLArgumentBuilder
Set the name of the argument.- Specified by:
setName
in interfaceGraphQLArgumentBuilder<Parent>
- Returns:
-
setDescription
Description copied from interface:GraphQLArgumentBuilder
Set the description of the argument.- Specified by:
setDescription
in interfaceGraphQLArgumentBuilder<Parent>
- Returns:
-
setDefaultValue
Description copied from interface:GraphQLArgumentBuilder
Set the default value for this argument.- Specified by:
setDefaultValue
in interfaceGraphQLArgumentBuilder<Parent>
- Returns:
-
setType
Description copied from interface:GraphQLArgumentBuilder
Set the input type this argument uses.- Specified by:
setType
in interfaceGraphQLArgumentBuilder<Parent>
- Returns:
-
done
Description copied from interface:GraphQLArgumentBuilder
Indicate that we are done building this argument.- Specified by:
done
in interfaceGraphQLArgumentBuilder<Parent>
- Returns:
-