Class ContentDelegateVisitor
java.lang.Object
com.aquima.interactions.composer.ds.delegate.ContentDelegateVisitor
- All Implemented Interfaces:
IContentVisitor
- Direct Known Subclasses:
ContentVisitor
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
ConstructorsConstructorDescriptionContentDelegateVisitor
(IContentVisitor visitor) Construct a visitor that delegates all method calls to the provided visitor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
This method may be used to add a asset definition.void
This method may be used to add a button definition.void
addContainer
(IContainerDS datasource) This method may be used to add a container definition.void
addContent
(IContentDS datasource) This method should be used to add a content definition.void
addDocument
(IDocumentDS datasource) This method should be used to add a document definition.void
This method may be used to add a field definition.void
This method should be used to add an image definition.void
This method may be used to add a page definition.void
This method should be used to add a text definition.
-
Constructor Details
-
ContentDelegateVisitor
Construct a visitor that delegates all method calls to the provided visitor.- Parameters:
visitor
- The delegate visitor, may not be null
-
-
Method Details
-
addButton
Description copied from interface:IContentVisitor
This method may be used to add a button definition.- Specified by:
addButton
in interfaceIContentVisitor
- Parameters:
datasource
- Data source implementation providing the element data.- Throws:
InitializationException
- This exception is raised when the element could not be initialized with the provided data.
-
addAsset
Description copied from interface:IContentVisitor
This method may be used to add a asset definition.- Specified by:
addAsset
in interfaceIContentVisitor
- Parameters:
datasource
- Data source implementation providing the element data.- Throws:
InitializationException
- This exception is raised when the element could not be initialized with the provided data.
-
addContainer
Description copied from interface:IContentVisitor
This method may be used to add a container definition.- Specified by:
addContainer
in interfaceIContentVisitor
- Parameters:
datasource
- Data source implementation providing the element data.- Throws:
InitializationException
- This exception is raised when the element could not be initialized with the provided data.
-
addPage
Description copied from interface:IContentVisitor
This method may be used to add a page definition.- Specified by:
addPage
in interfaceIContentVisitor
- Parameters:
datasource
- Data source implementation providing the element data.- Throws:
InitializationException
- This exception is raised when the element could not be initialized with the provided data.
-
addField
Description copied from interface:IContentVisitor
This method may be used to add a field definition.- Specified by:
addField
in interfaceIContentVisitor
- Parameters:
datasource
- Data source implementation providing the element data.- Throws:
InitializationException
- This exception is raised when the element could not be initialized with the provided data.
-
addDocument
Description copied from interface:IContentVisitor
This method should be used to add a document definition.- Specified by:
addDocument
in interfaceIContentVisitor
- Parameters:
datasource
- Data source that provides the required data to initialize the element.- Throws:
InitializationException
- This exception is thrown when the document could not be added due to a fatal error.
-
addContent
Description copied from interface:IContentVisitor
This method should be used to add a content definition.- Specified by:
addContent
in interfaceIContentVisitor
- Parameters:
datasource
- Data source that provides the required data to initialize the element.- Throws:
InitializationException
- This exception is thrown when the content could not be added due to a fatal error.
-
addText
Description copied from interface:IContentVisitor
This method should be used to add a text definition.- Specified by:
addText
in interfaceIContentVisitor
- Parameters:
datasource
- Data source that provides the required data to initialize the element.- Throws:
InitializationException
- This exception is thrown when the text could not be added due to a fatal error.
-
addImage
Description copied from interface:IContentVisitor
This method should be used to add an image definition.- Specified by:
addImage
in interfaceIContentVisitor
- Parameters:
datasource
- Data source that provides the required data to initialize the element.- Throws:
InitializationException
- This exception is thrown when the text could not be added due to a fatal error.
-