Class ReportingValueVisitor

java.lang.Object
com.aquima.interactions.foundation.report.ReportingVisitorDS
com.aquima.interactions.metamodel.report.ReportingValueVisitor
All Implemented Interfaces:
IValueVisitor

public class ReportingValueVisitor extends ReportingVisitorDS implements IValueVisitor
IValueVisitor implementation that adds error reporting.
Since:
6.4
Author:
O. Kerpershoek
  • Constructor Details

  • Method Details

    • addChild

      public void addChild(String attribute, IInstanceDS childDS)
      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 interface IValueVisitor
      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

      public void addRelation(String attribute, String entityType, String instanceName)
      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 interface IValueVisitor
      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

      public void setValue(String attribute, IValue attributeValue)
      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 interface IValueVisitor
      Parameters:
      attribute - The name of the attribute of which the value should be set.
      attributeValue - The value for the attribute.