# Package 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.

- Interface Summary
  Interface | Description
  --- | ---
  DOMDocument | This interface models a document to be processed by the `Validator`.
  Fix | This interface models a fix for an issue.
  Rule | Models a rule for an issue detection.
  RuleContext<T> | This context is used to pass data from a `Rule` to a `Fix`.
  ValidationReport | This class contains the report of a validation performed by the `Validator` class.
  ValidationReportBuilder | The report interface is used to generate diagnostics about validation.
  ValidationReportSerializer | Defines a serializer for validation reports.
  Validator | The validator class allows to perform validation - correction of related to HTML `Document` instances.

- Class Summary
  Class | Description
  --- | ---
  DefaultDOMDocument | This class wraps the DOM document.
  DefaultRuleContext | Default implementation of `RuleContext`.
  DefaultValidationReport | Default implementation of `ValidationReport`.
  DefaultValidationReportBuilder | Default implementation of `ValidationReportBuilder`.
  DefaultValidator | Default implementation of `Validator`.
  EmptyValidationReport | An implementation of `ValidationReportBuilder` with no data.
  ValidationReport.Error | An error occurred while performing the validation process.
  ValidationReport.FixError | An error occurred while executing a fix.
  ValidationReport.Issue | An issue found during the validation process.
  ValidationReport.RuleActivation | This class describes the activation of a rule.
  ValidationReport.RuleError | An error occurred while executing a rule.
  XMLValidationReportSerializer | Default implementation of `ValidationReportSerializer` for XML.

- Enum Summary
  Enum | Description
  --- | ---
  ValidationReport.IssueLevel | Defines the different issue levels.

- Exception Summary
  Exception | Description
  --- | ---
  SerializationException | Defines an error raised from the `ValidationReportSerializer`.
  ValidatorException | Models any exception raised by the `Validator`.

- Annotation Types Summary
  Annotation Type | Description
  --- | ---
  XMLValidationReportSerializer.NodeName | Allows to specify a custom node name.