@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. |
GraphQLInputObjectType(java.lang.String name,
java.lang.String description,
java.util.List<GraphQLInputObjectField> fields,
java.util.List<GraphQLDirective> directives,
InputObjectTypeDefinition definition,
java.util.List<InputObjectTypeExtensionDefinition> extensionDefinitions) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDirective, getDirectivesByNamepublic 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 GraphQLInputObjectType(java.lang.String name,
java.lang.String description,
java.util.List<GraphQLInputObjectField> fields,
java.util.List<GraphQLDirective> directives,
InputObjectTypeDefinition definition,
java.util.List<InputObjectTypeExtensionDefinition> extensionDefinitions)
public java.lang.String getName()
getName in interface GraphQLNamedSchemaElementpublic java.lang.String getDescription()
getDescription in interface GraphQLNamedSchemaElementpublic java.util.List<GraphQLInputObjectField> getFields()
public GraphQLInputObjectField getField(java.lang.String name)
public java.util.List<GraphQLDirective> getDirectives()
getDirectives in interface GraphQLDirectiveContainerpublic GraphQLInputObjectField getFieldDefinition(java.lang.String name)
getFieldDefinition in interface GraphQLInputFieldsContainerpublic java.util.List<GraphQLInputObjectField> getFieldDefinitions()
getFieldDefinitions in interface GraphQLInputFieldsContainerpublic InputObjectTypeDefinition getDefinition()
GraphQLNamedSchemaElementNode this schema element is based on. Is null if the GraphQLSchema
is not based on a SDL document.
Some elements also have additional extension Nodes. See for example GraphQLObjectType.getExtensionDefinitions()getDefinition in interface GraphQLNamedSchemaElementpublic java.util.List<InputObjectTypeExtensionDefinition> getExtensionDefinitions()
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 GraphQLSchemaElementpublic java.util.List<GraphQLSchemaElement> getChildren()
getChildren in interface GraphQLSchemaElementpublic SchemaElementChildrenContainer getChildrenWithTypeReferences()
getChildrenWithTypeReferences in interface GraphQLSchemaElementpublic GraphQLInputObjectType withNewChildren(SchemaElementChildrenContainer newChildren)
withNewChildren in interface GraphQLSchemaElementpublic java.lang.String toString()
toString in class java.lang.Objectpublic static GraphQLInputObjectType.Builder newInputObject(GraphQLInputObjectType existing)
public static GraphQLInputObjectType.Builder newInputObject()