Class NodeSelectorFieldFactory
java.lang.Object
org.craftercms.engine.graphql.impl.field.NodeSelectorFieldFactory
- All Implemented Interfaces:
GraphQLFieldFactory
Implementation of
GraphQLFieldFactory that handles node-selector fields- Since:
- 3.1
- Author:
- joseross
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateField(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 aGraphQLObjectTypevoidsetDatasourceItemTypeXPathFormat(String datasourceItemTypeXPathFormat) voidsetDatasourceNameXPath(String datasourceNameXPath) voidsetDisableFlatteningXPath(String disableFlatteningXPath)
-
Field Details
-
disableFlatteningXPath
-
datasourceNameXPath
-
datasourceItemTypeXPathFormat
-
-
Constructor Details
-
NodeSelectorFieldFactory
public NodeSelectorFieldFactory()
-
-
Method Details
-
setDisableFlatteningXPath
-
setDatasourceNameXPath
-
setDatasourceItemTypeXPathFormat
-
createField
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) Description copied from interface:GraphQLFieldFactoryAdds all the required objects for a content-type field to aGraphQLObjectType- Specified by:
createFieldin interfaceGraphQLFieldFactory- Parameters:
contentTypeDefinition- 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 parentGraphQLObjectTypegraphQLFieldName- the field's GraphQL-friendly namegraphQLField- the field'sGraphQLFieldDefinition
-