public class ValidatorImpl.InvalidityHandlerWrappingErrorHandler extends Object implements InvalidityHandler
Constructor and Description |
---|
InvalidityHandlerWrappingErrorHandler(ErrorHandler handler) |
Modifier and Type | Method and Description |
---|---|
Sequence |
endReporting()
Get the value to be associated with a validation exception.
|
ErrorHandler |
getErrorHandler() |
void |
reportInvalidity(Invalidity failure)
Report a validation error found during validation of an instance document
against a schema
|
void |
startReporting(String systemId)
At the start of a validation episode, initialize the handler
|
public InvalidityHandlerWrappingErrorHandler(ErrorHandler handler)
public void startReporting(String systemId) throws XPathException
startReporting
in interface InvalidityHandler
systemId
- optional; may be used to represent the destination of any report producedXPathException
- if initialization of the invalidity handler fails for any reasonpublic void reportInvalidity(Invalidity failure) throws XPathException
InvalidityHandler
reportInvalidity
in interface InvalidityHandler
failure
- details of the validation errorXPathException
- - if the validation error cannot be reported.
This is fatal and will cause the validation run to be abandonedpublic ErrorHandler getErrorHandler()
public Sequence endReporting()
endReporting
in interface InvalidityHandler
Copyright (c) 2004-2017 Saxonica Limited. All rights reserved.