Class ContainmentDelegateVisitor

java.lang.Object
com.aquima.interactions.composer.ds.delegate.ContainmentDelegateVisitor
All Implemented Interfaces:
IContainmentVisitor
Direct Known Subclasses:
ContainmentVisitor

public class ContainmentDelegateVisitor extends Object implements IContainmentVisitor
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

    • ContainmentDelegateVisitor

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

    • addField

      public void addField(IReferenceDS reference, IFieldDS field)
      Description copied from interface: IContainmentVisitor
      This method may be used to add a field to the container.
      Specified by:
      addField in interface IContainmentVisitor
      Parameters:
      reference - Data source providing the information about the relation.
      field - Data source providing the field specific information.
    • addContainer

      public void addContainer(IReferenceDS reference, IContainerDS container)
      Description copied from interface: IContainmentVisitor
      This method may be used to add an inline container to the container.
      Specified by:
      addContainer in interface IContainmentVisitor
      Parameters:
      reference - Data source providing the information about the relation.
      container - Data source providing the container specific information.
    • addReference

      public void addReference(IReferenceDS datasource, String name)
      Description copied from interface: IContainmentVisitor
      This method may be used to add a containment to the container.
      Specified by:
      addReference in interface IContainmentVisitor
      Parameters:
      datasource - Data source providing the information about the relation.
      name - The name of the element that should be included as content.