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
@NullUnmarked
public static class GraphQLScalarType.Builder
extends GraphqlDirectivesContainerTypeBuilder<GraphQLScalarType.Builder,GraphQLScalarType.Builder>
-
Field Summary
Fields inherited from class graphql.schema.GraphqlDirectivesContainerTypeBuilder
appliedDirectives, directivesFields 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, withAppliedDirectivesMethods 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:
replaceDirectivesin classGraphqlDirectivesContainerTypeBuilder<GraphQLScalarType.Builder,GraphQLScalarType.Builder> - Parameters:
directives- the list of directives- Returns:
- this builder
-
withDirectives
- Overrides:
withDirectivesin classGraphqlDirectivesContainerTypeBuilder<GraphQLScalarType.Builder,GraphQLScalarType.Builder> - Parameters:
directives- the variable args of directives- Returns:
- this builder
-
withDirective
- Overrides:
withDirectivein classGraphqlDirectivesContainerTypeBuilder<GraphQLScalarType.Builder,GraphQLScalarType.Builder> - Parameters:
directive- the directive to add- Returns:
- this builder
-
withDirective
- Overrides:
withDirectivein classGraphqlDirectivesContainerTypeBuilder<GraphQLScalarType.Builder,GraphQLScalarType.Builder> - Parameters:
builder- the directive builder- Returns:
- this 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
- Overrides:
namein classGraphqlTypeBuilder<GraphQLScalarType.Builder>
-
description
- Overrides:
descriptionin classGraphqlTypeBuilder<GraphQLScalarType.Builder>
-
build
-