Saxon.Api

Class DocumentBuilder

Class DomDestination

Class DynamicContext

Class DynamicError

Class EmptyEnumerator

Class ExtensionFunctionCall

Class ExtensionFunctionDefinition

Class InvalidityHandlerWrapper

Class NamespaceConstant

Class NullDestination

Class Processor

Class QName

Class SchemaManager

Class SchemaValidator

Class Serializer

Class StandardLogger

Class StaticContext

Class StaticError

Class TextWriterDestination

Class WhitespacePolicy

Class XPathCompiler

Class XPathExecutable

Class XPathSelector

Class XQueryCompiler

Class XQueryEvaluator

Class XQueryExecutable

Class XdmAnyFunctionType

Class XdmAnyItemType

Class XdmAnyNodeType

Class XdmArray

Class XdmAtomicType

Class XdmAtomicValue

Class XdmDestination

  - Class TreeProtector

Class XdmEmptySequence

Class XdmExternalObjectValue

Class XdmFunctionItem

Class XdmItem

Class XdmItemType

Class XdmMap

Class XdmNode

Class XdmNodeKind

Class XdmSequenceType

Class XdmValue

Class XmlDestination

Class Xslt30Transformer

Class XsltCompiler

Class XsltExecutable

  - Class ParameterDetails

Class XsltPackage

Class XsltTransformer

Enum RecoveryPolicy

Enum SchemaValidationMode

Enum TreeModel

Enum XdmAxis

Interface IInvalidityHandler

Interface IMessageListener

Interface IQueryResolver

Interface IResultDocumentHandler

Interface IXdmEnumerator

Interface IXmlLocation

Interface SchemaResolver

 

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 user specifies -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 InvalidatityHandler class for interfacing within Java.


Constructor Summary
InvalidityHandlerWrapper(IInvalidityHandler inHandler)

reate a Standard Invalidity Handler

 
Method Summary
 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)

reate a Standard Invalidity Handler

Parameters:
inHandler -
The .NEt IInvalidtityHandler

Method Detail

endReporting

public 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 -
Is optional; may be used to represent the destination of any report produced