Package graphql.schema
Class GraphqlDirectivesContainerTypeBuilder<B extends GraphqlDirectivesContainerTypeBuilder<B,BASE>,BASE extends GraphqlTypeBuilder<BASE>>
- java.lang.Object
-
- graphql.schema.GraphqlTypeBuilder<BASE>
-
- graphql.schema.GraphqlDirectivesContainerTypeBuilder<B,BASE>
-
- Direct Known Subclasses:
GraphQLArgument.Builder
,GraphQLEnumType.Builder
,GraphQLEnumValueDefinition.Builder
,GraphQLFieldDefinition.Builder
,GraphQLInputObjectField.Builder
,GraphQLInputObjectType.Builder
,GraphQLInterfaceType.Builder
,GraphQLObjectType.Builder
,GraphQLScalarType.Builder
,GraphQLUnionType.Builder
public abstract class GraphqlDirectivesContainerTypeBuilder<B extends GraphqlDirectivesContainerTypeBuilder<B,BASE>,BASE extends GraphqlTypeBuilder<BASE>> extends GraphqlTypeBuilder<BASE>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<GraphQLAppliedDirective>
appliedDirectives
protected java.util.List<GraphQLDirective>
directives
-
Fields inherited from class graphql.schema.GraphqlTypeBuilder
comparatorRegistry, description, name
-
-
Constructor Summary
Constructors Constructor Description GraphqlDirectivesContainerTypeBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description B
clearDirectives()
This is used to clear all the directives in the builder so far.protected void
copyExistingDirectives(GraphQLDirectiveContainer directivesContainer)
B
replaceAppliedDirectives(java.util.List<GraphQLAppliedDirective> directives)
B
replaceDirectives(java.util.List<GraphQLDirective> directives)
Deprecated.- use theGraphQLAppliedDirective
methods insteadB
withAppliedDirective(GraphQLAppliedDirective directive)
B
withAppliedDirective(GraphQLAppliedDirective.Builder builder)
B
withAppliedDirectives(GraphQLAppliedDirective... directives)
B
withDirective(GraphQLDirective directive)
Deprecated.- use theGraphQLAppliedDirective
methods insteadB
withDirective(GraphQLDirective.Builder builder)
Deprecated.- use theGraphQLAppliedDirective
methods insteadB
withDirectives(GraphQLDirective... directives)
Deprecated.- use theGraphQLAppliedDirective
methods instead-
Methods inherited from class graphql.schema.GraphqlTypeBuilder
comparatorRegistry, description, name
-
-
-
-
Field Detail
-
appliedDirectives
protected final java.util.List<GraphQLAppliedDirective> appliedDirectives
-
directives
protected final java.util.List<GraphQLDirective> directives
-
-
Method Detail
-
replaceAppliedDirectives
public B replaceAppliedDirectives(java.util.List<GraphQLAppliedDirective> directives)
-
withAppliedDirectives
public B withAppliedDirectives(GraphQLAppliedDirective... directives)
-
withAppliedDirective
public B withAppliedDirective(GraphQLAppliedDirective directive)
-
withAppliedDirective
public B withAppliedDirective(GraphQLAppliedDirective.Builder builder)
-
replaceDirectives
@Deprecated public B replaceDirectives(java.util.List<GraphQLDirective> directives)
Deprecated.- use theGraphQLAppliedDirective
methods instead- Parameters:
directives
- the list of directives- Returns:
- this builder
-
withDirectives
@Deprecated public B withDirectives(GraphQLDirective... directives)
Deprecated.- use theGraphQLAppliedDirective
methods instead- Parameters:
directives
- the variable args of directives- Returns:
- this builder
-
withDirective
@Deprecated public B withDirective(GraphQLDirective directive)
Deprecated.- use theGraphQLAppliedDirective
methods instead- Parameters:
directive
- the directive to add- Returns:
- this builder
-
withDirective
@Deprecated public B withDirective(GraphQLDirective.Builder builder)
Deprecated.- use theGraphQLAppliedDirective
methods instead- Parameters:
builder
- the directive builder- Returns:
- this builder
-
clearDirectives
public B clearDirectives()
This is used to clear all the directives in the builder so far.- Returns:
- the builder
-
copyExistingDirectives
protected void copyExistingDirectives(GraphQLDirectiveContainer directivesContainer)
-
-