Package org.iso_relax.dispatcher.impl
Class DispatcherImpl
java.lang.Object
org.iso_relax.dispatcher.impl.DispatcherImpl
- All Implemented Interfaces:
Dispatcher
reference implementation of Dispatcher interface.
- Author:
- Kohsuke KAWAGUCHI
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.iso_relax.dispatcher.Dispatcher
Dispatcher.NotationDecl, Dispatcher.UnparsedEntityDecl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattachXMLReader(XMLReader reader) configure XMLReader to use this Dispatcher as a ContentHandler.intcounts notation declarations found in this XML instance.intcounts unparsed entities found in this XML instance.gets ErrorHandler to which IslandVerifier reports validation errors.getNotationDecl(int index) gets ith notation declaration found in this XML instance.get ShcmeaProvider object which is attached to this Dispatcher.getUnparsedEntityDecl(int index) gets ith unparsed entity found in this XML instance.voidsetErrorHandler(ErrorHandler handler) sets application-implemented ErrorHandler, which will receive all validation errors.voidswitchVerifier(IslandVerifier newVerifier) switches to the child IslandVerifier.
-
Constructor Details
-
DispatcherImpl
-
-
Method Details
-
getSchemaProvider
Description copied from interface:Dispatcherget ShcmeaProvider object which is attached to this Dispatcher.- Specified by:
getSchemaProviderin interfaceDispatcher
-
attachXMLReader
Description copied from interface:Dispatcherconfigure XMLReader to use this Dispatcher as a ContentHandler.- Specified by:
attachXMLReaderin interfaceDispatcher
-
switchVerifier
Description copied from interface:Dispatcherswitches to the child IslandVerifier. this method can only be called during startElement method.- Specified by:
switchVerifierin interfaceDispatcher- Throws:
SAXException
-
setErrorHandler
Description copied from interface:Dispatchersets application-implemented ErrorHandler, which will receive all validation errors.- Specified by:
setErrorHandlerin interfaceDispatcher
-
getErrorHandler
Description copied from interface:Dispatchergets ErrorHandler to which IslandVerifier reports validation errors. the caller may not assume that this method returns the same object that was passed to setErrorHandler method. this method cannot return null.- Specified by:
getErrorHandlerin interfaceDispatcher
-
countUnparsedEntityDecls
public int countUnparsedEntityDecls()Description copied from interface:Dispatchercounts unparsed entities found in this XML instance.- Specified by:
countUnparsedEntityDeclsin interfaceDispatcher
-
getUnparsedEntityDecl
Description copied from interface:Dispatchergets ith unparsed entity found in this XML instance. IslandVerifiers can not receive DTDHandler events. Those who need DTD information should call this method.- Specified by:
getUnparsedEntityDeclin interfaceDispatcher
-
countNotationDecls
public int countNotationDecls()Description copied from interface:Dispatchercounts notation declarations found in this XML instance.- Specified by:
countNotationDeclsin interfaceDispatcher
-
getNotationDecl
Description copied from interface:Dispatchergets ith notation declaration found in this XML instance. IslandVerifiers can not receive DTDHandler events. Those who need DTD information should call this method.- Specified by:
getNotationDeclin interfaceDispatcher
-