org.iso_relax.dispatcher

Interface Dispatcher

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
static classDispatcher.NotationDecl
static classDispatcher.UnparsedEntityDecl
Method Summary
voidattachXMLReader(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.
ErrorHandlergetErrorHandler()
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.
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(ErrorHandler handler)
sets application-implemented ErrorHandler, which will receive all validation errors.
voidswitchVerifier(IslandVerifier newVerifier)
switches to the child IslandVerifier. this method can only be called during startElement method.

Method Detail

attachXMLReader

public void attachXMLReader(XMLReader reader)
configure XMLReader to use this Dispatcher as a ContentHandler.

countNotationDecls

public int countNotationDecls()
counts notation declarations found in this XML instance.

countUnparsedEntityDecls

public int countUnparsedEntityDecls()
counts unparsed entities found in this XML instance.

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.

getNotationDecl

public 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.

getSchemaProvider

public SchemaProvider getSchemaProvider()
get ShcmeaProvider object which is attached to this Dispatcher.

getUnparsedEntityDecl

public 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.

setErrorHandler

public void setErrorHandler(ErrorHandler handler)
sets application-implemented ErrorHandler, which will receive all validation errors.

switchVerifier

public void switchVerifier(IslandVerifier newVerifier)
switches to the child IslandVerifier. this method can only be called during startElement method.