@PublicApi public class GraphQLInputObjectType extends Object implements GraphQLType, GraphQLInputType, GraphQLUnmodifiedType, GraphQLNullableType, GraphQLInputFieldsContainer, GraphQLDirectiveContainer
Modifier and Type | Class and Description |
---|---|
static class |
GraphQLInputObjectType.Builder |
Constructor and Description |
---|
GraphQLInputObjectType(String name,
String description,
List<GraphQLInputObjectField> fields)
Deprecated.
use the
newInputObject() builder pattern instead, as this constructor will be made private in a future version. |
GraphQLInputObjectType(String name,
String description,
List<GraphQLInputObjectField> fields,
List<GraphQLDirective> directives,
InputObjectTypeDefinition definition)
Deprecated.
use the
newInputObject() builder pattern instead, as this constructor will be made private in a future version. |
Modifier and Type | Method and Description |
---|---|
TraversalControl |
accept(TraverserContext<GraphQLType> context,
GraphQLTypeVisitor visitor)
Double-dispatch entry point.
|
List<GraphQLType> |
getChildren() |
InputObjectTypeDefinition |
getDefinition() |
String |
getDescription() |
List<GraphQLDirective> |
getDirectives() |
GraphQLInputObjectField |
getField(String name) |
GraphQLInputObjectField |
getFieldDefinition(String name) |
List<GraphQLInputObjectField> |
getFieldDefinitions() |
List<GraphQLInputObjectField> |
getFields() |
String |
getName() |
static GraphQLInputObjectType.Builder |
newInputObject() |
static GraphQLInputObjectType.Builder |
newInputObject(GraphQLInputObjectType existing) |
GraphQLInputObjectType |
transform(Consumer<GraphQLInputObjectType.Builder> builderConsumer)
This helps you transform the current GraphQLInputObjectType into another one by starting a builder with all
the current values and allows you to transform it how you want.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDirective, getDirectivesByName
@Deprecated public GraphQLInputObjectType(String name, String description, List<GraphQLInputObjectField> fields)
newInputObject()
builder pattern instead, as this constructor will be made private in a future version.name
- the namedescription
- the descriptionfields
- the fields@Deprecated public GraphQLInputObjectType(String name, String description, List<GraphQLInputObjectField> fields, List<GraphQLDirective> directives, InputObjectTypeDefinition definition)
newInputObject()
builder pattern instead, as this constructor will be made private in a future version.name
- the namedescription
- the descriptionfields
- the fieldsdirectives
- the directives on this type elementdefinition
- the AST definitionpublic String getName()
getName
in interface GraphQLType
[_A-Za-z][_0-9A-Za-z]*
public String getDescription()
public List<GraphQLInputObjectField> getFields()
public GraphQLInputObjectField getField(String name)
public List<GraphQLDirective> getDirectives()
getDirectives
in interface GraphQLDirectiveContainer
public GraphQLInputObjectField getFieldDefinition(String name)
getFieldDefinition
in interface GraphQLInputFieldsContainer
public List<GraphQLInputObjectField> getFieldDefinitions()
getFieldDefinitions
in interface GraphQLInputFieldsContainer
public InputObjectTypeDefinition getDefinition()
public GraphQLInputObjectType transform(Consumer<GraphQLInputObjectType.Builder> builderConsumer)
builderConsumer
- the consumer code that will be given a builder to transformpublic TraversalControl accept(TraverserContext<GraphQLType> context, GraphQLTypeVisitor visitor)
GraphQLType
Node
, see accept(...) for more details about the pattern.accept
in interface GraphQLType
context
- TraverserContext bound to this graphQL type objectvisitor
- Visitor instance that performs actual processing on the types(s)public List<GraphQLType> getChildren()
getChildren
in interface GraphQLType
public static GraphQLInputObjectType.Builder newInputObject(GraphQLInputObjectType existing)
public static GraphQLInputObjectType.Builder newInputObject()
Copyright © 2019. All rights reserved.