Class ContentDelegateDS

java.lang.Object
com.aquima.interactions.foundation.report.ReportingDelegateDS
com.aquima.interactions.composer.ds.delegate.ContentDelegateDS
All Implemented Interfaces:
IContentDS, IContentNodeDS, IElementDS, IReportingDS
Direct Known Subclasses:
ContentDS

public class ContentDelegateDS extends ReportingDelegateDS implements IContentDS
Delegate datasource for easy datasource extension. All method calls are delegated to the delegate datasource without adding any functionality.
Since:
8.4
Author:
Jon van Leuven
  • Constructor Details

    • ContentDelegateDS

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

    • getDescription

      public String getDescription()
      Description copied from interface: IContentDS
      This method returns a descriptive text for the content element.
      Specified by:
      getDescription in interface IContentDS
      Returns:
      a descriptive text for the content element.
    • iterateContent

      public void iterateContent(INodeVisitor visitor)
      Description copied from interface: IContentNodeDS
      This method will be invoked during initialization to read all the sub content.
      Specified by:
      iterateContent in interface IContentNodeDS
      Parameters:
      visitor - This visitor should be used to add all the sub-content to.
    • getContentStyle

      public String getContentStyle()
      Description copied from interface: IContentDS
      This method returns the content style that should be used when including the content element that is referred to.
      Specified by:
      getContentStyle in interface IContentDS
      Returns:
      the content style that should be used when including the content element that is referred to.
    • getName

      public String getName()
      Description copied from interface: IElementDS
      This method returns the (unique) name of the element. The name is required when adding the content as a definition to the composer, but it is optional when the element is added directly as inline sub-content.
      Specified by:
      getName in interface IElementDS
      Returns:
      the (unique) name of the element.
    • getPresentationStyles

      public String[] getPresentationStyles()
      Description copied from interface: IElementDS
      This method returns the presentation styles that should be used when including the content element that is referred to.
      Specified by:
      getPresentationStyles in interface IElementDS
      Returns:
      the presentation styles that should be used when including the content element that is referred to.