public class InvalidityHandlerWrappingErrorListener extends java.lang.Object implements InvalidityHandler
| Constructor and Description |
|---|
InvalidityHandlerWrappingErrorListener(javax.xml.transform.ErrorListener errorListener) |
| Modifier and Type | Method and Description |
|---|---|
Sequence |
endReporting()
Get the value to be associated with a validation exception.
|
javax.xml.transform.ErrorListener |
getErrorListener() |
void |
reportInvalidity(Invalidity failure)
Report a validation error found during validation of an instance document
against a schema
|
void |
startReporting(java.lang.String systemId)
At the start of a validation episode, initialize the handler
|
public InvalidityHandlerWrappingErrorListener(javax.xml.transform.ErrorListener errorListener)
public void startReporting(java.lang.String systemId)
throws XPathException
startReporting in interface InvalidityHandlersystemId - 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
InvalidityHandlerreportInvalidity in interface InvalidityHandlerfailure - details of the validation errorXPathException - - if the validation error cannot be reported.
This is fatal and will cause the validation run to be abandonedpublic javax.xml.transform.ErrorListener getErrorListener()
public Sequence endReporting()
endReporting in interface InvalidityHandlerCopyright (c) 2004-2021 Saxonica Limited. All rights reserved.