@PublicApi public class GraphQLInputObjectType extends java.lang.Object implements GraphQLNamedInputType, GraphQLUnmodifiedType, GraphQLNullableType, GraphQLInputFieldsContainer, GraphQLDirectiveContainer
Modifier and Type | Class and Description |
---|---|
static class |
GraphQLInputObjectType.Builder |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CHILD_DIRECTIVES |
static java.lang.String |
CHILD_FIELD_DEFINITIONS |
Constructor and Description |
---|
GraphQLInputObjectType(java.lang.String name,
java.lang.String description,
java.util.List<GraphQLInputObjectField> fields)
Deprecated.
use the
newInputObject() builder pattern instead, as this constructor will be made private in a future version. |
GraphQLInputObjectType(java.lang.String name,
java.lang.String description,
java.util.List<GraphQLInputObjectField> fields,
java.util.List<GraphQLDirective> directives,
InputObjectTypeDefinition definition)
Deprecated.
use the
newInputObject() builder pattern instead, as this constructor will be made private in a future version. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDirective, getDirectivesByName
public static final java.lang.String CHILD_FIELD_DEFINITIONS
public static final java.lang.String CHILD_DIRECTIVES
@Deprecated public GraphQLInputObjectType(java.lang.String name, java.lang.String description, java.util.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(java.lang.String name, java.lang.String description, java.util.List<GraphQLInputObjectField> fields, java.util.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 java.lang.String getName()
getName
in interface GraphQLNamedSchemaElement
public java.lang.String getDescription()
public java.util.List<GraphQLInputObjectField> getFields()
public GraphQLInputObjectField getField(java.lang.String name)
public java.util.List<GraphQLDirective> getDirectives()
getDirectives
in interface GraphQLDirectiveContainer
public GraphQLInputObjectField getFieldDefinition(java.lang.String name)
getFieldDefinition
in interface GraphQLInputFieldsContainer
public java.util.List<GraphQLInputObjectField> getFieldDefinitions()
getFieldDefinitions
in interface GraphQLInputFieldsContainer
public InputObjectTypeDefinition getDefinition()
public GraphQLInputObjectType transform(java.util.function.Consumer<GraphQLInputObjectType.Builder> builderConsumer)
builderConsumer
- the consumer code that will be given a builder to transformpublic TraversalControl accept(TraverserContext<GraphQLSchemaElement> context, GraphQLTypeVisitor visitor)
accept
in interface GraphQLSchemaElement
public java.util.List<GraphQLSchemaElement> getChildren()
getChildren
in interface GraphQLSchemaElement
public SchemaElementChildrenContainer getChildrenWithTypeReferences()
getChildrenWithTypeReferences
in interface GraphQLSchemaElement
public GraphQLInputObjectType withNewChildren(SchemaElementChildrenContainer newChildren)
withNewChildren
in interface GraphQLSchemaElement
public static GraphQLInputObjectType.Builder newInputObject(GraphQLInputObjectType existing)
public static GraphQLInputObjectType.Builder newInputObject()