Class ReportingValueVisitor
java.lang.Object
com.aquima.interactions.foundation.report.ReportingVisitorDS
com.aquima.interactions.metamodel.report.ReportingValueVisitor
- All Implemented Interfaces:
IValueVisitor
IValueVisitor implementation that adds error reporting.
- Since:
- 6.4
- Author:
- O. Kerpershoek
-
Constructor Summary
ModifierConstructorDescriptionprotected
ReportingValueVisitor
(IInitializationReport report, IValueVisitor visitor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChild
(String attribute, IInstanceDS childDS) This method can be used to add an anonymous child instance.void
addRelation
(String attribute, String entityType, String instanceName) This method can be invoked to link the attribute to another static instance.void
When a setValue is invoked for a relation attribute, the value should be either the name or the ID of the (static) instance that should be referenced.Methods inherited from class com.aquima.interactions.foundation.report.ReportingVisitorDS
addError, addMessage, beginScope, endScope, getCategory, getReport
-
Constructor Details
-
ReportingValueVisitor
-
-
Method Details
-
addChild
Description copied from interface:IValueVisitor
This method can be used to add an anonymous child instance. To add a reference to another static instance use the addRelation method instead.- Specified by:
addChild
in interfaceIValueVisitor
- Parameters:
attribute
- The name of the attribute to which the child instance definition should be added.childDS
- The data source that provides the information for the child instance.
-
addRelation
Description copied from interface:IValueVisitor
This method can be invoked to link the attribute to another static instance. Both the name and the type of the static instance should be provided, as the name of an instance needs only be unique amongst the other instances of that type.- Specified by:
addRelation
in interfaceIValueVisitor
- Parameters:
attribute
- The name of the attribute to which the child instance definition should be added.entityType
- The type of the instance the relation should refer to.instanceName
- The name of the instance the relation should refer to.
-
setValue
Description copied from interface:IValueVisitor
When a setValue is invoked for a relation attribute, the value should be either the name or the ID of the (static) instance that should be referenced.- Specified by:
setValue
in interfaceIValueVisitor
- Parameters:
attribute
- The name of the attribute of which the value should be set.attributeValue
- The value for the attribute.
-