public class DispatcherImpl extends Object implements Dispatcher
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DispatcherImpl.Context |
Dispatcher.NotationDecl, Dispatcher.UnparsedEntityDecl| Modifier and Type | Field and Description |
|---|---|
protected DispatcherImpl.Context |
contextStack |
protected Locator |
documentLocator |
protected ErrorHandler |
errorHandler |
protected Vector<Dispatcher.NotationDecl> |
notationDecls |
protected org.xml.sax.helpers.NamespaceSupport |
nsMap |
protected SchemaProvider |
schema
Dispatcher will consult this object about schema information
|
protected org.iso_relax.dispatcher.impl.DispatcherImpl.Transponder |
transponder
this object passes SAX events to IslandVerifier.
|
protected Vector<Dispatcher.UnparsedEntityDecl> |
unparsedEntityDecls |
| Constructor and Description |
|---|
DispatcherImpl(SchemaProvider pschema) |
| Modifier and Type | Method and Description |
|---|---|
void |
attachXMLReader(XMLReader reader)
configure XMLReader to use this Dispatcher as a ContentHandler.
|
int |
countNotationDecls()
counts notation declarations found in this XML instance.
|
int |
countUnparsedEntityDecls()
counts unparsed entities found in this XML instance.
|
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.
|
Dispatcher.NotationDecl |
getNotationDecl(int index)
gets ith notation declaration found in this XML instance.
|
SchemaProvider |
getSchemaProvider()
get ShcmeaProvider object which is attached to this Dispatcher.
|
Dispatcher.UnparsedEntityDecl |
getUnparsedEntityDecl(int index)
gets ith unparsed entity found in this XML instance.
|
void |
setErrorHandler(ErrorHandler handler)
sets application-implemented ErrorHandler, which will receive all
validation errors.
|
void |
switchVerifier(IslandVerifier newVerifier)
switches to the child IslandVerifier. this method can only be called during
startElement method.
|
protected Locator documentLocator
protected final org.xml.sax.helpers.NamespaceSupport nsMap
protected ErrorHandler errorHandler
protected final SchemaProvider schema
protected org.iso_relax.dispatcher.impl.DispatcherImpl.Transponder transponder
protected DispatcherImpl.Context contextStack
protected final Vector<Dispatcher.UnparsedEntityDecl> unparsedEntityDecls
protected final Vector<Dispatcher.NotationDecl> notationDecls
public DispatcherImpl(SchemaProvider pschema)
public SchemaProvider getSchemaProvider()
DispatchergetSchemaProvider in interface Dispatcherpublic void attachXMLReader(XMLReader reader)
DispatcherattachXMLReader in interface Dispatcherpublic void switchVerifier(IslandVerifier newVerifier) throws SAXException
DispatcherswitchVerifier in interface DispatcherSAXExceptionpublic void setErrorHandler(ErrorHandler handler)
DispatchersetErrorHandler in interface Dispatcherpublic ErrorHandler getErrorHandler()
DispatchergetErrorHandler in interface Dispatcherpublic int countUnparsedEntityDecls()
DispatchercountUnparsedEntityDecls in interface Dispatcherpublic Dispatcher.UnparsedEntityDecl getUnparsedEntityDecl(int index)
DispatchergetUnparsedEntityDecl in interface Dispatcherpublic int countNotationDecls()
DispatchercountNotationDecls in interface Dispatcherpublic Dispatcher.NotationDecl getNotationDecl(int index)
DispatchergetNotationDecl in interface DispatcherCopyright © 2016 Philip Helger. All rights reserved.