Interface DocumentValidator
- All Known Implementing Classes:
SCHValidator
,XSDValidator
,XSLTValidator
public interface DocumentValidator
Interface for document validator implementation classes.
- Author:
- Ionite
-
Method Summary
Modifier and TypeMethodDescriptionvoid
reload()
Reload the underlying validation filevalidate
(byte[] source) Validate the given XML source against the validation file and return a new ValidationResult instancevalidate
(byte[] source, ValidationResult result) Validate the given XML source against the validation file, and add the errors and warnings to the given ValidationResult item.
-
Method Details
-
reload
Reload the underlying validation file- Throws:
ValidatorException
-
validate
Validate the given XML source against the validation file and return a new ValidationResult instance- Parameters:
source
- The XML source to validate- Returns:
- A newly initialized ValidationResult containing the results of the validation
- Throws:
ValidatorException
- Thrown when there is an error performing the validation
-
validate
Validate the given XML source against the validation file, and add the errors and warnings to the given ValidationResult item.- Parameters:
source
- The XML source to validateresult
- Errors and warnings are added to this instance in-place- Returns:
- The modified ValidationResult instance
- Throws:
ValidatorException
- Thrown when there is an error performing the validation
-