Class NodeDelegateVisitor

java.lang.Object
com.aquima.interactions.composer.ds.delegate.NodeDelegateVisitor
All Implemented Interfaces:
INodeVisitor
Direct Known Subclasses:
NodeVisitor

public class NodeDelegateVisitor extends Object implements INodeVisitor
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 Details

    • NodeDelegateVisitor

      public NodeDelegateVisitor(INodeVisitor visitor)
      Construct a visitor that delegates all method calls to the provided visitor.
      Parameters:
      visitor - The delegate visitor, may not be null
  • Method Details

    • addContent

      public void addContent(IReferenceDS reference, IContentDS datasource)
      Description copied from interface: INodeVisitor
      This method may be used to add inline content to the current content node.
      Specified by:
      addContent in interface INodeVisitor
      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

      public void addContentRef(IReferenceDS reference, String name)
      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 interface INodeVisitor
      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

      public void addText(IReferenceDS reference, ITextDS datasource)
      Description copied from interface: INodeVisitor
      This method may be used to add inline content to the current content node.
      Specified by:
      addText in interface INodeVisitor
      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

      public void addTextRef(IReferenceDS reference, String name)
      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 interface INodeVisitor
      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

      public void addImageRef(IReferenceDS reference, String name)
      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 interface INodeVisitor
      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

      public void addContainerRef(IReferenceDS reference, String name)
      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 interface INodeVisitor
      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.