org.iso_relax.dispatcher.impl
Class DispatcherImpl
java.lang.Object
org.iso_relax.dispatcher.impl.DispatcherImpl
- Dispatcher
public class DispatcherImpl
extends java.lang.Object
reference implementation of Dispatcher interface.
attachXMLReader
public void attachXMLReader(XMLReader reader)
configure XMLReader to use this Dispatcher as a ContentHandler.
- attachXMLReader in interface Dispatcher
countNotationDecls
public int countNotationDecls()
counts notation declarations found in this XML instance.
- countNotationDecls in interface Dispatcher
getErrorHandler
public 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.
- getErrorHandler in interface Dispatcher
getNotationDecl
public 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.
- getNotationDecl in interface Dispatcher
getUnparsedEntityDecl
public 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.
- getUnparsedEntityDecl in interface Dispatcher
setErrorHandler
public void setErrorHandler(ErrorHandler handler)
sets application-implemented ErrorHandler, which will receive all validation
errors.
- setErrorHandler in interface Dispatcher
switchVerifier
public void switchVerifier(IslandVerifier newVerifier)
throws SAXException
switches to the child IslandVerifier.
this method can only be called during startElement method.
- switchVerifier in interface Dispatcher