Package graphql.schema
Class GraphQLScalarType.Builder
- java.lang.Object
-
- graphql.schema.GraphqlTypeBuilder<BASE>
-
- graphql.schema.GraphqlDirectivesContainerTypeBuilder<GraphQLScalarType.Builder,GraphQLScalarType.Builder>
-
- graphql.schema.GraphQLScalarType.Builder
-
- Enclosing class:
- GraphQLScalarType
@PublicApi public static class GraphQLScalarType.Builder extends GraphqlDirectivesContainerTypeBuilder<GraphQLScalarType.Builder,GraphQLScalarType.Builder>
-
-
Field Summary
-
Fields inherited from class graphql.schema.GraphqlDirectivesContainerTypeBuilder
appliedDirectives, directives
-
Fields inherited from class graphql.schema.GraphqlTypeBuilder
comparatorRegistry, description, name
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(GraphQLScalarType existing)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphQLScalarTypebuild()GraphQLScalarType.BuilderclearDirectives()This is used to clear all the directives in the builder so far.GraphQLScalarType.Buildercoercing(Coercing<?,?> coercing)GraphQLScalarType.Builderdefinition(ScalarTypeDefinition definition)GraphQLScalarType.Builderdescription(java.lang.String description)GraphQLScalarType.BuilderextensionDefinitions(java.util.List<ScalarTypeExtensionDefinition> extensionDefinitions)GraphQLScalarType.Buildername(java.lang.String name)GraphQLScalarType.BuilderreplaceDirectives(java.util.List<GraphQLDirective> directives)GraphQLScalarType.BuilderspecifiedByUrl(java.lang.String specifiedByUrl)GraphQLScalarType.BuilderwithDirective(GraphQLDirective directive)GraphQLScalarType.BuilderwithDirective(GraphQLDirective.Builder builder)GraphQLScalarType.BuilderwithDirectives(GraphQLDirective... directives)-
Methods inherited from class graphql.schema.GraphqlDirectivesContainerTypeBuilder
copyExistingDirectives, replaceAppliedDirectives, withAppliedDirective, withAppliedDirective, withAppliedDirectives
-
Methods inherited from class graphql.schema.GraphqlTypeBuilder
comparatorRegistry
-
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(GraphQLScalarType existing)
-
-
Method Detail
-
specifiedByUrl
public GraphQLScalarType.Builder specifiedByUrl(java.lang.String specifiedByUrl)
-
definition
public GraphQLScalarType.Builder definition(ScalarTypeDefinition definition)
-
extensionDefinitions
public GraphQLScalarType.Builder extensionDefinitions(java.util.List<ScalarTypeExtensionDefinition> extensionDefinitions)
-
coercing
public GraphQLScalarType.Builder coercing(Coercing<?,?> coercing)
-
replaceDirectives
public GraphQLScalarType.Builder replaceDirectives(java.util.List<GraphQLDirective> directives)
- Overrides:
replaceDirectivesin classGraphqlDirectivesContainerTypeBuilder<GraphQLScalarType.Builder,GraphQLScalarType.Builder>- Parameters:
directives- the list of directives- Returns:
- this builder
-
withDirectives
public GraphQLScalarType.Builder withDirectives(GraphQLDirective... directives)
- Overrides:
withDirectivesin classGraphqlDirectivesContainerTypeBuilder<GraphQLScalarType.Builder,GraphQLScalarType.Builder>- Parameters:
directives- the variable args of directives- Returns:
- this builder
-
withDirective
public GraphQLScalarType.Builder withDirective(GraphQLDirective directive)
- Overrides:
withDirectivein classGraphqlDirectivesContainerTypeBuilder<GraphQLScalarType.Builder,GraphQLScalarType.Builder>- Parameters:
directive- the directive to add- Returns:
- this builder
-
withDirective
public GraphQLScalarType.Builder withDirective(GraphQLDirective.Builder builder)
- Overrides:
withDirectivein classGraphqlDirectivesContainerTypeBuilder<GraphQLScalarType.Builder,GraphQLScalarType.Builder>- Parameters:
builder- the directive builder- Returns:
- this builder
-
clearDirectives
public GraphQLScalarType.Builder clearDirectives()
Description copied from class:GraphqlDirectivesContainerTypeBuilderThis is used to clear all the directives in the builder so far.- Overrides:
clearDirectivesin classGraphqlDirectivesContainerTypeBuilder<GraphQLScalarType.Builder,GraphQLScalarType.Builder>- Returns:
- the builder
-
name
public GraphQLScalarType.Builder name(java.lang.String name)
- Overrides:
namein classGraphqlTypeBuilder<GraphQLScalarType.Builder>
-
description
public GraphQLScalarType.Builder description(java.lang.String description)
- Overrides:
descriptionin classGraphqlTypeBuilder<GraphQLScalarType.Builder>
-
build
public GraphQLScalarType build()
-
-