Class NodeDelegateVisitor
java.lang.Object
com.aquima.interactions.composer.ds.delegate.NodeDelegateVisitor
- All Implemented Interfaces:
INodeVisitor
- Direct Known Subclasses:
NodeVisitor
Delegate visitor for easy datasource extension. All method calls are delegated to the delegate visitor without adding
any functionality.
- Since:
- 8.4
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorDescriptionNodeDelegateVisitor
(INodeVisitor visitor) Construct a visitor that delegates all method calls to the provided visitor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addContainerRef
(IReferenceDS reference, 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 reference, IContentDS datasource) This method may be used to add inline content to the current content node.void
addContentRef
(IReferenceDS reference, String name) This method may be used to a reference to an existing content element to the current content node.void
addImageRef
(IReferenceDS reference, String name) This method may be used to add an image reference to an existing image element to the current content node.void
addText
(IReferenceDS reference, ITextDS datasource) This method may be used to add inline content to the current content node.void
addTextRef
(IReferenceDS reference, String name) This method may be used to add a reference to an existing text element to the current content node.
-
Constructor Details
-
NodeDelegateVisitor
Construct a visitor that delegates all method calls to the provided visitor.- Parameters:
visitor
- The delegate visitor, may not be null
-
-
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:
reference
- 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:
reference
- Data source providing information specific for the relation between the parent content and the sub content that is added.name
- 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:
reference
- 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.
-
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:
reference
- Data source providing information specific for the relation between the parent content and the sub content that is added.name
- 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:
reference
- Data source providing information specific for the relation between the parent content and the sub content that is added.name
- The name of the image element that should be included as 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:
reference
- 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.
-