Interface Rule

    • Method Detail

      • getHRName

        String getHRName()
        Returns:
        returns the human readable name for this rule.
      • applyOn

        boolean applyOn​(DOMDocument document,
                        RuleContext<?> context,
                        ValidationReportBuilder validationReportBuilder)
        Applies this rule to the given document.
        Parameters:
        document - the target document.
        context - the context used to pass data to an eventual Fix.
        validationReportBuilder - the report builder used to collect rule reporting.
        Returns:
        true if al least an issue is detected, false otherwise.