Package org.codehaus.stax2.validation
Interface ValidationProblemHandler
public interface ValidationProblemHandler
This interface defines method(s) needed to implement a custom validation
problem (warning, error, fatal error) handler. Such handlers can be used,
for example, to collect validation problems without automatically
throwing exceptions. It can also be used to throw exception for problems
that by default would only be reported as warnings.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
reportProblem
(XMLValidationProblem problem) Method called by validator, when a validation problem is encountered.
-
Method Details
-
reportProblem
Method called by validator, when a validation problem is encountered. Impementations can choose to ignore the problem, log something about the problem, store it for later processing, or throw aXMLValidationException
.- Parameters:
problem
- Validation problem encountered.- Throws:
XMLValidationException
-