Class AbstractRulePropertyFormula

java.lang.Object
com.inet.problemfinder.rules.AbstractRulePropertyFormula
All Implemented Interfaces:
ProblemFinderRule

public abstract class AbstractRulePropertyFormula extends Object implements ProblemFinderRule
Base class for checks looking for errors in property-formulas.
Collects the formulaFields of areas, sections, elements, sort-fields, groups.
  • Constructor Details

    • AbstractRulePropertyFormula

      public AbstractRulePropertyFormula()
  • Method Details

    • findErrors

      public List<ProblemFinderWarning> findErrors(Engine engine)
      Runs this rule and checks the given Engine for Problems
      Specified by:
      findErrors in interface ProblemFinderRule
      Parameters:
      engine - The Engine to check.
      Returns:
      A list of found problems, can be empty or null if the Check is Canceled.
    • check

      protected abstract ProblemFinderWarning check(Engine engine, FormulaField formula, Object source)
      Called to check the given FormulaField.
      Parameters:
      engine - is the Engine to check
      formula - the field to check
      source - the source with holds the property formula, the element, section, area, groupField or sortField
      Returns:
      a ProblemFinderWarning, or null if no error detected.
      Since:
      i-net Clear Reports 12.0