public class RepeatGroupFieldFactory extends Object implements GraphQLFieldFactory
GraphQLFieldFactory that handles repeating-group fields| Modifier and Type | Field and Description |
|---|---|
protected String |
fieldsXPath |
protected GraphQLTypeFactory |
typeFactory |
| Constructor and Description |
|---|
RepeatGroupFieldFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
createField(org.dom4j.Document contentTypeDefinition,
org.dom4j.Node contentTypeField,
String contentTypeFieldId,
String parentGraphQLTypeName,
graphql.schema.GraphQLObjectType.Builder parentGraphQLType,
String graphQLFieldName,
graphql.schema.GraphQLFieldDefinition.Builder graphQLField)
Adds all the required objects for a content-type field to a
GraphQLObjectType |
void |
setFieldsXPath(String fieldsXPath) |
void |
setTypeFactory(GraphQLTypeFactory typeFactory) |
protected String fieldsXPath
protected GraphQLTypeFactory typeFactory
public void setFieldsXPath(String fieldsXPath)
public void setTypeFactory(GraphQLTypeFactory typeFactory)
public void createField(org.dom4j.Document contentTypeDefinition,
org.dom4j.Node contentTypeField,
String contentTypeFieldId,
String parentGraphQLTypeName,
graphql.schema.GraphQLObjectType.Builder parentGraphQLType,
String graphQLFieldName,
graphql.schema.GraphQLFieldDefinition.Builder graphQLField)
GraphQLFieldFactoryGraphQLObjectTypecreateField in interface GraphQLFieldFactorycontentTypeDefinition - the XML document with the content type definitioncontentTypeField - the XML node with the content-type fieldcontentTypeFieldId - the content-type field IDparentGraphQLTypeName - the field's parent GraphQL type nameparentGraphQLType - the field's parent GraphQLObjectTypegraphQLFieldName - the field's GraphQL-friendly namegraphQLField - the field's GraphQLFieldDefinitionCopyright © 2020 CrafterCMS. All rights reserved.