Package org.iso_relax.dispatcher
Interface Dispatcher
- All Known Implementing Classes:
DispatcherImpl
public interface Dispatcher
splits incoming SAX events to "islands", and feed events to IslandVerifier.
- Version:
- 1.1
- Author:
- MURATA Makoto (FAMILY Given), Kohsuke KAWAGUCHI
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic class -
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.
-
Method Details
-
attachXMLReader
configure XMLReader to use this Dispatcher as a ContentHandler. -
switchVerifier
switches to the child IslandVerifier. this method can only be called during startElement method.- Throws:
SAXException
-
setErrorHandler
sets application-implemented ErrorHandler, which will receive all validation errors. -
getErrorHandler
ErrorHandler getErrorHandler()gets 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. -
getSchemaProvider
SchemaProvider getSchemaProvider()get ShcmeaProvider object which is attached to this Dispatcher. -
countNotationDecls
int countNotationDecls()counts notation declarations found in this XML instance. -
getNotationDecl
gets ith notation declaration found in this XML instance. IslandVerifiers can not receive DTDHandler events. Those who need DTD information should call this method. -
countUnparsedEntityDecls
int countUnparsedEntityDecls()counts unparsed entities found in this XML instance. -
getUnparsedEntityDecl
gets ith unparsed entity found in this XML instance. IslandVerifiers can not receive DTDHandler events. Those who need DTD information should call this method.
-