Class DispatcherImpl

java.lang.Object
org.iso_relax.dispatcher.impl.DispatcherImpl
All Implemented Interfaces:
Dispatcher

public class DispatcherImpl extends Object implements Dispatcher
reference implementation of Dispatcher interface.
Author:
Kohsuke KAWAGUCHI
  • Constructor Details

  • Method Details

    • getSchemaProvider

      public SchemaProvider getSchemaProvider()
      Description copied from interface: Dispatcher
      get ShcmeaProvider object which is attached to this Dispatcher.
      Specified by:
      getSchemaProvider in interface Dispatcher
    • attachXMLReader

      public void attachXMLReader(XMLReader reader)
      Description copied from interface: Dispatcher
      configure XMLReader to use this Dispatcher as a ContentHandler.
      Specified by:
      attachXMLReader in interface Dispatcher
    • switchVerifier

      public void switchVerifier(IslandVerifier newVerifier) throws SAXException
      Description copied from interface: Dispatcher
      switches to the child IslandVerifier. this method can only be called during startElement method.
      Specified by:
      switchVerifier in interface Dispatcher
      Throws:
      SAXException
    • setErrorHandler

      public void setErrorHandler(ErrorHandler handler)
      Description copied from interface: Dispatcher
      sets application-implemented ErrorHandler, which will receive all validation errors.
      Specified by:
      setErrorHandler in interface Dispatcher
    • getErrorHandler

      public ErrorHandler getErrorHandler()
      Description copied from interface: Dispatcher
      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.
      Specified by:
      getErrorHandler in interface Dispatcher
    • countUnparsedEntityDecls

      public int countUnparsedEntityDecls()
      Description copied from interface: Dispatcher
      counts unparsed entities found in this XML instance.
      Specified by:
      countUnparsedEntityDecls in interface Dispatcher
    • getUnparsedEntityDecl

      public Dispatcher.UnparsedEntityDecl getUnparsedEntityDecl(int index)
      Description copied from interface: Dispatcher
      gets ith unparsed entity found in this XML instance. IslandVerifiers can not receive DTDHandler events. Those who need DTD information should call this method.
      Specified by:
      getUnparsedEntityDecl in interface Dispatcher
    • countNotationDecls

      public int countNotationDecls()
      Description copied from interface: Dispatcher
      counts notation declarations found in this XML instance.
      Specified by:
      countNotationDecls in interface Dispatcher
    • getNotationDecl

      public Dispatcher.NotationDecl getNotationDecl(int index)
      Description copied from interface: Dispatcher
      gets ith notation declaration found in this XML instance. IslandVerifiers can not receive DTDHandler events. Those who need DTD information should call this method.
      Specified by:
      getNotationDecl in interface Dispatcher