## Uses of Interface
org.apache.any23.validator.Rule

- Packages that use Rule
  Package | Description
  --- | ---
  org.apache.any23.validator | This package defines a simple rule based validation framework able to detect (`Rule`) and fix (`Fix`) common mistakes that can be present within an HTML DOM model and that can prevent the extraction of metadata.
  org.apache.any23.validator.rule | A set of predefined validation `Rule`s and associated `Fix`es.

- - ### Uses of Rule in org.apache.any23.validator

    Methods in org.apache.any23.validator that return Rule
    Modifier and Type | Method | Description
    --- | --- | ---
    `Rule` | ValidationReport.RuleError.`getOrigin()` |

    Methods in org.apache.any23.validator that return types with arguments of type Rule
    Modifier and Type | Method | Description
    --- | --- | ---
    `List<Class<? extends Rule>>` | DefaultValidator.`getAllRules()` |
    `List<Class<? extends Rule>>` | Validator.`getAllRules()` | Returns all the registered rules.

    Methods in org.apache.any23.validator with parameters of type Rule
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | Fix.`execute​(Rule rule, RuleContext context, DOMDocument document)` | Executes this fix over a document.
    `void` | DefaultValidationReportBuilder.`reportRuleError​(Rule r, Exception e, String msg)` |
    `void` | ValidationReportBuilder.`reportRuleError​(Rule r, Exception e, String msg)` | Reports an error occurred while executing a `Rule`.
    `void` | DefaultValidationReportBuilder.`traceRuleActivation​(Rule r)` |
    `void` | ValidationReportBuilder.`traceRuleActivation​(Rule r)` | Traces that a rule has been applied.

    Method parameters in org.apache.any23.validator with type arguments of type Rule
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | DefaultValidator.`addRule​(Class<? extends Rule> rule)` |
    `void` | DefaultValidator.`addRule​(Class<? extends Rule> rule, Class<? extends Fix> fix)` |
    `void` | Validator.`addRule​(Class<? extends Rule> rule)` | Allows to register a new rule to this validator
    `void` | Validator.`addRule​(Class<? extends Rule> rule, Class<? extends Fix> fix)` | Allows to register a new rule to this validator and associating it to a fix.
    `List<Class<? extends Fix>>` | DefaultValidator.`getFixes​(Class<? extends Rule> rule)` |
    `List<Class<? extends Fix>>` | Validator.`getFixes​(Class<? extends Rule> rule)` | Returns all fixes registered for the give rule.
    `void` | DefaultValidator.`removeRule​(Class<? extends Rule> rule)` |
    `void` | Validator.`removeRule​(Class<? extends Rule> rule)` | Allows to remove a rule from the validator and all the related `Fix`es.

    Constructors in org.apache.any23.validator with parameters of type Rule
    Constructor | Description
    --- | ---
    `RuleActivation​(Rule r)` |
    `RuleError​(Rule r, Exception e, String msg)` |

  - ### Uses of Rule in org.apache.any23.validator.rule

    Classes in org.apache.any23.validator.rule that implement Rule
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `AboutNotURIRule` | This rule is able to detect whether an about value is a valid URL or otherwise is a valid relative URL.
    `class` | `MetaNameMisuseRule` | Checks whether the meta attribute name is used to contain a property.
    `class` | `MissingItemscopeAttributeValueRule` | This fixes missing attribute values for the 'itemscope' attribute Typically when such a snippet of XHTML is fed through the `RDFa11Extractor`, and subsequently to Sesame's SesameRDFaParser, it will result in the following behavior.
    `class` | `MissingOpenGraphNamespaceRule` | This rule detects the issue of missing Open Graph namespace.

    Methods in org.apache.any23.validator.rule with parameters of type Rule
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | MetaNameMisuseFix.`execute​(Rule rule, RuleContext context, DOMDocument document)` |
    `void` | MissingItemscopeAttributeValueFix.`execute​(Rule rule, RuleContext context, DOMDocument document)` |
    `void` | OpenGraphNamespaceFix.`execute​(Rule rule, RuleContext context, DOMDocument document)` |