Class AboutNotURIRule

  • All Implemented Interfaces:

    public class AboutNotURIRule
    extends Object
    implements Rule
    This rule is able to detect whether an about value is a valid URL or otherwise is a valid relative URL.
    Michele Mostarda (, Davide Palmisano (
    • Constructor Detail

      • AboutNotURIRule

        public AboutNotURIRule()
    • Method Detail

      • getHRName

        public String getHRName()
        Specified by:
        getHRName in interface Rule
        returns the human readable name for this rule.
      • applyOn

        public boolean applyOn​(DOMDocument document,
                               RuleContext context,
                               ValidationReportBuilder validationReportBuilder)
        Description copied from interface: Rule
        Applies this rule to the given document.
        Specified by:
        applyOn in interface Rule
        document - the target document.
        context - the context used to pass data to an eventual Fix.
        validationReportBuilder - the report builder used to collect rule reporting.
        true if al least an issue is detected, false otherwise.