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>appliedDirectivesprotected 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 BclearDirectives()This is used to clear all the directives in the builder so far.protected voidcopyExistingDirectives(GraphQLDirectiveContainer directivesContainer)BreplaceAppliedDirectives(java.util.List<GraphQLAppliedDirective> directives)BreplaceDirectives(java.util.List<GraphQLDirective> directives)Deprecated.- use theGraphQLAppliedDirectivemethods insteadBwithAppliedDirective(GraphQLAppliedDirective directive)BwithAppliedDirective(GraphQLAppliedDirective.Builder builder)BwithAppliedDirectives(GraphQLAppliedDirective... directives)BwithDirective(GraphQLDirective directive)Deprecated.- use theGraphQLAppliedDirectivemethods insteadBwithDirective(GraphQLDirective.Builder builder)Deprecated.- use theGraphQLAppliedDirectivemethods insteadBwithDirectives(GraphQLDirective... directives)Deprecated.- use theGraphQLAppliedDirectivemethods 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(since="2022-02-24") public B replaceDirectives(java.util.List<GraphQLDirective> directives)
Deprecated.- use theGraphQLAppliedDirectivemethods instead- Parameters:
directives- the list of directives- Returns:
- this builder
-
withDirectives
@Deprecated(since="2022-02-24") public B withDirectives(GraphQLDirective... directives)
Deprecated.- use theGraphQLAppliedDirectivemethods instead- Parameters:
directives- the variable args of directives- Returns:
- this builder
-
withDirective
@Deprecated(since="2022-02-24") public B withDirective(GraphQLDirective directive)
Deprecated.- use theGraphQLAppliedDirectivemethods instead- Parameters:
directive- the directive to add- Returns:
- this builder
-
withDirective
@Deprecated(since="2022-02-24") public B withDirective(GraphQLDirective.Builder builder)
Deprecated.- use theGraphQLAppliedDirectivemethods 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)
-
-