Validator interface

The Validator interface exposes the following functions: init(config:GridConfig), process(rulesToExecute:Validator.RulesEnum), and destroy().

Function Description


This function initializes the validator.


This function executes the validation rules. The rulesToExecute parameter determines which type of rule validation plug-in executes. It is an enumerated value that can have the following values:

  • allRules
  • gridRules
  • rowRules


This function is a destructor for the object, and does garbage collection.

Unica Plan provides a sample validator, This object takes a grid as input, then iterates through all of the records in the grid, validating against rules defined in an XML file.