Class AbstractRulePropertyFormula

  • All Implemented Interfaces:
    ProblemFinderRule

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

      • AbstractRulePropertyFormula

        public AbstractRulePropertyFormula()
    • Method Detail

      • findErrors

        public java.util.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,
                                                      java.lang.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