Saxon.Api

 

 

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 InvalidityGenerator, this returns the XML document containing the validation report.

 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

public InvalidityHandlerWrapper(IInvalidityHandler inHandler)

Create a standard Invalidity Handler.

Parameters:

inHandler - The .NET IInvalidityHandler.

Method Detail

endReporting

public net.sf.saxon.om.Sequence endReporting()

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:

A value (or null). This will be the value returned as the value of the variable $err:value during try/catch processor.

reportInvalidity

public void reportInvalidity(net.sf.saxon.lib.Invalidity i)

Receive notification of a validity error.

Parameters:

i - Information about the nature of the invalidity.

startReporting

public void startReporting(string systemId)

At the start of a validation episode, initialize the handler.

Parameters:

systemId - Optional; may be used to represent the destination of any report produced.