public class NodeSelectorFieldFactory extends Object implements GraphQLFieldFactory
GraphQLFieldFactory that handles node-selector fields| Modifier and Type | Field and Description |
|---|---|
protected String |
datasourceItemTypeXPathFormat |
protected String |
datasourceNameXPath |
protected String |
disableFlatteningXPath |
| Constructor and Description |
|---|
NodeSelectorFieldFactory() |
| 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 |
setDatasourceItemTypeXPathFormat(String datasourceItemTypeXPathFormat) |
void |
setDatasourceNameXPath(String datasourceNameXPath) |
void |
setDisableFlatteningXPath(String disableFlatteningXPath) |
protected String disableFlatteningXPath
protected String datasourceNameXPath
protected String datasourceItemTypeXPathFormat
public void setDisableFlatteningXPath(String disableFlatteningXPath)
public void setDatasourceNameXPath(String datasourceNameXPath)
public void setDatasourceItemTypeXPathFormat(String datasourceItemTypeXPathFormat)
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.