Class TimeFieldFactory
java.lang.Object
org.craftercms.engine.graphql.impl.field.TimeFieldFactory
- All Implemented Interfaces:
GraphQLFieldFactory
Implementation of
GraphQLFieldFactory
that handles time-only fields- Since:
- 3.1.1
- Author:
- joseross
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 aGraphQLObjectType
-
Constructor Details
-
TimeFieldFactory
public TimeFieldFactory()
-
-
Method Details
-
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:GraphQLFieldFactory
Adds all the required objects for a content-type field to aGraphQLObjectType
- Specified by:
createField
in 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 parentGraphQLObjectType
graphQLFieldName
- the field's GraphQL-friendly namegraphQLField
- the field'sGraphQLFieldDefinition
-