Class QRCodeVisitor
java.lang.Object
com.aquima.interactions.composer.model.qrcode.QRCodeVisitor
- All Implemented Interfaces:
IVisitor
This class is responsible for retrieving an image element given its key from the parent element.
- Since:
- 9.8
- Author:
- Voicu Moldovan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method will be invoked for each element that is encountered during the visit.Returns the QR Code image.void
leave
(ICompositeElement compositeElement, IVisitor childVisitor) This method will be invoked after all the children of the specified container have been processed with the childVisitor.
-
Constructor Details
-
QRCodeVisitor
Constructs a new QR Code visitor.- Parameters:
key
- The element key.
-
-
Method Details
-
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. -
getQRCodeImage
Returns the QR Code image.- Returns:
- QR Code Image element, can be
null
.
-
leave
Description copied from interface:IVisitor
This method will be invoked after all the children of the specified container have been processed with the childVisitor. The implementation of this method may choose to merge the results of the child visitor with this visitor.
-