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 GraphQLScalarType
build()
GraphQLScalarType.Builder
clearDirectives()
This is used to clear all the directives in the builder so far.GraphQLScalarType.Builder
coercing(Coercing<?,?> coercing)
GraphQLScalarType.Builder
definition(ScalarTypeDefinition definition)
GraphQLScalarType.Builder
description(java.lang.String description)
GraphQLScalarType.Builder
extensionDefinitions(java.util.List<ScalarTypeExtensionDefinition> extensionDefinitions)
GraphQLScalarType.Builder
name(java.lang.String name)
GraphQLScalarType.Builder
replaceDirectives(java.util.List<GraphQLDirective> directives)
GraphQLScalarType.Builder
specifiedByUrl(java.lang.String specifiedByUrl)
GraphQLScalarType.Builder
withDirective(GraphQLDirective directive)
GraphQLScalarType.Builder
withDirective(GraphQLDirective.Builder builder)
GraphQLScalarType.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 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:
replaceDirectives
in classGraphqlDirectivesContainerTypeBuilder<GraphQLScalarType.Builder,GraphQLScalarType.Builder>
- Parameters:
directives
- the list of directives- Returns:
- this builder
-
withDirectives
public GraphQLScalarType.Builder withDirectives(GraphQLDirective... directives)
- Overrides:
withDirectives
in classGraphqlDirectivesContainerTypeBuilder<GraphQLScalarType.Builder,GraphQLScalarType.Builder>
- Parameters:
directives
- the variable args of directives- Returns:
- this builder
-
withDirective
public GraphQLScalarType.Builder withDirective(GraphQLDirective directive)
- Overrides:
withDirective
in classGraphqlDirectivesContainerTypeBuilder<GraphQLScalarType.Builder,GraphQLScalarType.Builder>
- Parameters:
directive
- the directive to add- Returns:
- this builder
-
withDirective
public GraphQLScalarType.Builder withDirective(GraphQLDirective.Builder builder)
- Overrides:
withDirective
in classGraphqlDirectivesContainerTypeBuilder<GraphQLScalarType.Builder,GraphQLScalarType.Builder>
- Parameters:
builder
- the directive builder- Returns:
- this builder
-
clearDirectives
public GraphQLScalarType.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
public GraphQLScalarType.Builder name(java.lang.String name)
- Overrides:
name
in classGraphqlTypeBuilder<GraphQLScalarType.Builder>
-
description
public GraphQLScalarType.Builder description(java.lang.String description)
- Overrides:
description
in classGraphqlTypeBuilder<GraphQLScalarType.Builder>
-
build
public GraphQLScalarType build()
-
-