Class EventValueConverter
java.lang.Object
com.aquima.interactions.portal.model.session.page.EventValueConverter
- All Implemented Interfaces:
IVisitor
This class will be used as visitor of a page model to convert all the values from the event to values that can be
inserted into the profile. This class will only convert the values from the event, but will NOT update the
profile.
- Since:
- 5.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionEventValueConverter
(IPortalContext context, PortalEvent pageEvent, IValueFormatter inputFormat) -
Method Summary
Modifier and TypeMethodDescriptionThis method will be invoked for each element that is encountered during the visit.protected EventValue
convertValueFor
(IField field) protected IMultilingualText
getMessage
(String key, String[] parameters) protected boolean
protected boolean
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.protected IPrimitiveValue
parseValue
(IField field, String value)
-
Constructor Details
-
EventValueConverter
public EventValueConverter(IPortalContext context, PortalEvent pageEvent, IValueFormatter inputFormat)
-
-
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. -
convertValueFor
-
parseValue
-
isChanged
-
isUnknown
-
getEventValues
-
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. -
getMessage
-