Class ContentDelegateVisitor

java.lang.Object
com.aquima.interactions.composer.ds.delegate.ContentDelegateVisitor
All Implemented Interfaces:
IContentVisitor
Direct Known Subclasses:
ContentVisitor

public class ContentDelegateVisitor extends Object implements IContentVisitor
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

    • ContentDelegateVisitor

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

    • addButton

      public void addButton(IButtonDS datasource)
      Description copied from interface: IContentVisitor
      This method may be used to add a button definition.
      Specified by:
      addButton in interface IContentVisitor
      Parameters:
      datasource - Data source implementation providing the element data.
    • addAsset

      public void addAsset(IAssetDS datasource)
      Description copied from interface: IContentVisitor
      This method may be used to add a asset definition.
      Specified by:
      addAsset in interface IContentVisitor
      Parameters:
      datasource - Data source implementation providing the element data.
    • addContainer

      public void addContainer(IContainerDS datasource)
      Description copied from interface: IContentVisitor
      This method may be used to add a container definition.
      Specified by:
      addContainer in interface IContentVisitor
      Parameters:
      datasource - Data source implementation providing the element data.
    • addPage

      public void addPage(IPageDS datasource)
      Description copied from interface: IContentVisitor
      This method may be used to add a page definition.
      Specified by:
      addPage in interface IContentVisitor
      Parameters:
      datasource - Data source implementation providing the element data.
    • addField

      public void addField(IFieldDS datasource)
      Description copied from interface: IContentVisitor
      This method may be used to add a field definition.
      Specified by:
      addField in interface IContentVisitor
      Parameters:
      datasource - Data source implementation providing the element data.
    • addDocument

      public void addDocument(IDocumentDS datasource)
      Description copied from interface: IContentVisitor
      This method should be used to add a document definition.
      Specified by:
      addDocument in interface IContentVisitor
      Parameters:
      datasource - Data source that provides the required data to initialize the element.
    • addContent

      public void addContent(IContentDS datasource)
      Description copied from interface: IContentVisitor
      This method should be used to add a content definition.
      Specified by:
      addContent in interface IContentVisitor
      Parameters:
      datasource - Data source that provides the required data to initialize the element.
    • addText

      public void addText(ITextDS datasource)
      Description copied from interface: IContentVisitor
      This method should be used to add a text definition.
      Specified by:
      addText in interface IContentVisitor
      Parameters:
      datasource - Data source that provides the required data to initialize the element.
    • addImage

      public void addImage(IImageDS datasource)
      Description copied from interface: IContentVisitor
      This method should be used to add an image definition.
      Specified by:
      addImage in interface IContentVisitor
      Parameters:
      datasource - Data source that provides the required data to initialize the element.