Interface IValidationVisitor

All Superinterfaces:
IRuleVisitor
All Known Implementing Classes:
ReportingValidationVisitor, ValidationDelegateVisitor, ValidationRuleVisitor, ValidationVisitor

public interface IValidationVisitor extends IRuleVisitor
An implementation of this visitor is provided by the rule engine during initialization to allow the data layer to add validation rules.
Since:
5.0
Author:
O. Kerpershoek
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method may be used to add a validation rule by providing a data source that can be used to initialize a standard validation.
    void
    This method may be used to add a custom validation rule to the rule engine.

    Methods inherited from interface com.aquima.interactions.rule.ds.IRuleVisitor

    getMetaModel, getParser
  • Method Details

    • addValidation

      void addValidation(IValidationDS datasource)
      This method may be used to add a validation rule by providing a data source that can be used to initialize a standard validation.
      Parameters:
      datasource - Data source capable of providing the data needed to initialize a validation rule.
      Throws:
      InitializationException - This exception is raised when the rule could not be added due to errors.
    • addValidation

      void addValidation(IValidationRule rule)
      This method may be used to add a custom validation rule to the rule engine.
      Parameters:
      rule - Custom implementation of the validation rule interface.
      Throws:
      InitializationException - This exception is raised when the rule could not be added due to errors.