Class AbstractVisitor
java.lang.Object
com.aquima.interactions.composer.model.AbstractVisitor
- All Implemented Interfaces:
IVisitor
- Direct Known Subclasses:
RuntimeKeyGenerator
Base class for visitors that splits the generic accept method into more specific accept methods for each type of
element.
Note: The acceptCustomElement will always be called for all elements. This is done as custom elements may extend a normal element (for instance a custom button implementation). If the acceptCustomElement returns null, the element is considered a normal element, and the normal accept method for the element will be invoked.
- Since:
- 5.0
- Author:
- O. Kerpershoek
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method will be invoked for each element that is encountered during the visit.protected abstract void
acceptButton
(IButton button) protected abstract IVisitor
acceptContainer
(IContainer container) protected abstract IVisitor
acceptCustomElement
(IElement element) abstract IVisitor
acceptDocument
(IDocument document) protected abstract void
acceptField
(IField field) protected abstract void
acceptImage
(IImage image) protected abstract IVisitor
acceptPage
(IPage page) protected abstract void
acceptText
(IAsset text)
-
Constructor Details
-
AbstractVisitor
public AbstractVisitor()
-
-
Method Details
-
acceptButton
-
acceptField
-
acceptText
-
acceptImage
-
acceptPage
-
acceptContainer
-
acceptCustomElement
-
acceptDocument
-
accept
Description copied from interface:IVisitor
This method will be invoked for each element that is encountered during the visit. The return type of this method is the visitor that should be used to process the child elements of the current element. When the current element does not have any children, or when the child elements should not be processed, this method should return a null value as result. The returned visitor may either be a new visitor, for instance with specific context information for the element, or the same visitor.
-