Saxon.Api
Class InvalidityHandlerWrapper
-
public class InvalidityHandlerWrapper
- implements net.sf.saxon.lib.InvalidityHandler
This class InvalidityHandlerWrapper
extends the standard error handler for errors found during
validation of an instance document against a schema, used if a user specifies the
-report option on validate.
Its effect is to output the validation errors found into the filename specified, in
an XML format.
This is a wrapper class to wrap a .NET InvalidityHandler
class for interfacing within Java.
Constructor Summary |
|
---|---|
InvalidityHandlerWrapper (IInvalidityHandler inHandler) Create a standard Invalidity Handler. |
Method Summary |
|
---|---|
net.sf.saxon.om.Sequence | endReporting()
Get the value to be associated with a validation exception. May return null.
In the case of the |
void | reportInvalidity(net.sf.saxon.lib.Invalidity i) Receive notification of a validity error. |
void | startReporting(string systemId) At the start of a validation episode, initialize the handler. |
Constructor Detail
InvalidityHandlerWrapper
Create a standard Invalidity Handler.
Parameters:
inHandler
- The .NET IInvalidityHandler
.Method Detail
endReporting
reportInvalidity
Receive notification of a validity error.
Parameters:
i
- Information about the nature of the invalidity.startReporting
At the start of a validation episode, initialize the handler.
Parameters:
systemId
- Optional; may be used to represent the destination of any report produced.
Get the value to be associated with a validation exception. May return null. In the case of the
InvalidityGenerator
, this returns the XML document containing the validation report.Returns:
$err:value
during try/catch processor.