Validator interface

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

Function Description

init(config:GridConfig)

This function initializes the validator.

process(rulesToExecute:Validator.RulesEnum)

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

destroy()

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

Unica Plan provides a sample validator, RangeCheckRule.java. 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.