Package graphql.schema
Class GraphQLScalarType.Builder
java.lang.Object
graphql.schema.GraphqlTypeBuilder<GraphQLScalarType.Builder>
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 -
Method Summary
Modifier and TypeMethodDescriptionbuild()
This is used to clear all the directives in the builder so far.definition
(ScalarTypeDefinition definition) description
(String description) extensionDefinitions
(List<ScalarTypeExtensionDefinition> extensionDefinitions) replaceDirectives
(List<GraphQLDirective> directives) specifiedByUrl
(String specifiedByUrl) withDirective
(GraphQLDirective directive) withDirective
(GraphQLDirective.Builder builder) withDirectives
(GraphQLDirective... directives) Methods inherited from class graphql.schema.GraphqlDirectivesContainerTypeBuilder
copyExistingDirectives, replaceAppliedDirectives, withAppliedDirective, withAppliedDirective, withAppliedDirectives
Methods inherited from class graphql.schema.GraphqlTypeBuilder
comparatorRegistry
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
specifiedByUrl
-
definition
-
extensionDefinitions
public GraphQLScalarType.Builder extensionDefinitions(List<ScalarTypeExtensionDefinition> extensionDefinitions) -
coercing
-
replaceDirectives
- Overrides:
replaceDirectives
in classGraphqlDirectivesContainerTypeBuilder<GraphQLScalarType.Builder,
GraphQLScalarType.Builder> - Parameters:
directives
- the list of directives- Returns:
- this builder
-
withDirectives
- Overrides:
withDirectives
in classGraphqlDirectivesContainerTypeBuilder<GraphQLScalarType.Builder,
GraphQLScalarType.Builder> - Parameters:
directives
- the variable args of directives- Returns:
- this builder
-
withDirective
- Overrides:
withDirective
in classGraphqlDirectivesContainerTypeBuilder<GraphQLScalarType.Builder,
GraphQLScalarType.Builder> - Parameters:
directive
- the directive to add- Returns:
- this builder
-
withDirective
- Overrides:
withDirective
in classGraphqlDirectivesContainerTypeBuilder<GraphQLScalarType.Builder,
GraphQLScalarType.Builder> - Parameters:
builder
- the directive builder- Returns:
- this builder
-
clearDirectives
Description copied from class:GraphqlDirectivesContainerTypeBuilder
This is used to clear all the directives in the builder so far.- Overrides:
clearDirectives
in classGraphqlDirectivesContainerTypeBuilder<GraphQLScalarType.Builder,
GraphQLScalarType.Builder> - Returns:
- the builder
-
name
- Overrides:
name
in classGraphqlTypeBuilder<GraphQLScalarType.Builder>
-
description
- Overrides:
description
in classGraphqlTypeBuilder<GraphQLScalarType.Builder>
-
build
-