Package org.iso_relax.dispatcher
Interface Dispatcher
-
- All Known Implementing Classes:
DispatcherImpl
public interface Dispatchersplits incoming SAX events to "islands", and feed events to IslandVerifier.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDispatcher.NotationDeclstatic classDispatcher.UnparsedEntityDecl
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidattachXMLReader(org.xml.sax.XMLReader reader)configure XMLReader to use this Dispatcher as a ContentHandler.intcountNotationDecls()counts notation declarations found in this XML instance.intcountUnparsedEntityDecls()counts unparsed entities found in this XML instance.org.xml.sax.ErrorHandlergetErrorHandler()gets ErrorHandler to which IslandVerifier reports validation errors.Dispatcher.NotationDeclgetNotationDecl(int index)gets ith notation declaration found in this XML instance.SchemaProvidergetSchemaProvider()get ShcmeaProvider object which is attached to this Dispatcher.Dispatcher.UnparsedEntityDeclgetUnparsedEntityDecl(int index)gets ith unparsed entity found in this XML instance.voidsetErrorHandler(org.xml.sax.ErrorHandler handler)sets application-implemented ErrorHandler, which will receive all validation errors.voidswitchVerifier(IslandVerifier newVerifier)switches to the child IslandVerifier.
-
-
-
Method Detail
-
attachXMLReader
void attachXMLReader(org.xml.sax.XMLReader reader)
configure XMLReader to use this Dispatcher as a ContentHandler.
-
switchVerifier
void switchVerifier(IslandVerifier newVerifier) throws org.xml.sax.SAXException
switches to the child IslandVerifier. this method can only be called during startElement method.- Throws:
org.xml.sax.SAXException
-
setErrorHandler
void setErrorHandler(org.xml.sax.ErrorHandler handler)
sets application-implemented ErrorHandler, which will receive all validation errors.
-
getErrorHandler
org.xml.sax.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
Dispatcher.NotationDecl getNotationDecl(int index)
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
Dispatcher.UnparsedEntityDecl getUnparsedEntityDecl(int index)
gets ith unparsed entity found in this XML instance. IslandVerifiers can not receive DTDHandler events. Those who need DTD information should call this method.
-
-