Class NodeVisitor
java.lang.Object
com.aquima.interactions.composer.model.definition.NodeVisitor
- All Implemented Interfaces:
INodeVisitor
This visitor is used during initialization to add child nodes to a composite content node.
- Since:
- 6.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ModifierConstructorDescriptionprotected
NodeVisitor
(IMetaModel metaModel, IParserFactory parser, DefinitionStore contentStore, CompositeNodeDefinition contentNode) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addContainerRef
(IReferenceDS referenceDS, String name) This method may be used to add a container reference to an existing container element to the current content node.void
addContent
(IReferenceDS referenceDS, IContentDS datasource) This method may be used to add inline content to the current content node.void
addContentRef
(IReferenceDS referenceDS, String contentName) This method may be used to a reference to an existing content element to the current content node.void
addImageRef
(IReferenceDS referenceDS, String imageName) This method may be used to add an image reference to an existing image element to the current content node.void
addText
(IReferenceDS referenceDS, ITextDS datasource) This method may be used to add inline content to the current content node.void
addTextRef
(IReferenceDS referenceDS, String textName) This method may be used to add a reference to an existing text element to the current content node.
-
Constructor Details
-
NodeVisitor
protected NodeVisitor(IMetaModel metaModel, IParserFactory parser, DefinitionStore contentStore, CompositeNodeDefinition contentNode)
-
-
Method Details
-
addContent
Description copied from interface:INodeVisitor
This method may be used to add inline content to the current content node.- Specified by:
addContent
in interfaceINodeVisitor
- Parameters:
referenceDS
- Data source providing information specific for the relation between the parent content and the sub content that is added.datasource
- Data source providing the data needed to initialize the sub content.
-
addContentRef
Description copied from interface:INodeVisitor
This method may be used to a reference to an existing content element to the current content node.- Specified by:
addContentRef
in interfaceINodeVisitor
- Parameters:
referenceDS
- Data source providing information specific for the relation between the parent content and the sub content that is added.contentName
- The name of the content item that should be included as sub content.
-
addText
Description copied from interface:INodeVisitor
This method may be used to add inline content to the current content node.- Specified by:
addText
in interfaceINodeVisitor
- Parameters:
referenceDS
- Data source providing information specific for the relation between the parent content and the sub content that is added.datasource
- Data source providing the data needed to initialize the sub content.
-
addContainerRef
Description copied from interface:INodeVisitor
This method may be used to add a container reference to an existing container element to the current content node.- Specified by:
addContainerRef
in interfaceINodeVisitor
- Parameters:
referenceDS
- Data source providing information specific for the relation between the parent content and the sub content that is added.name
- The name of the container element that should be included as sub content.
-
addTextRef
Description copied from interface:INodeVisitor
This method may be used to add a reference to an existing text element to the current content node.- Specified by:
addTextRef
in interfaceINodeVisitor
- Parameters:
referenceDS
- Data source providing information specific for the relation between the parent content and the sub content that is added.textName
- The name of the text element that should be included as sub content.
-
addImageRef
Description copied from interface:INodeVisitor
This method may be used to add an image reference to an existing image element to the current content node.- Specified by:
addImageRef
in interfaceINodeVisitor
- Parameters:
referenceDS
- Data source providing information specific for the relation between the parent content and the sub content that is added.imageName
- The name of the image element that should be included as sub content.
-