Class XercesBridge

  • Direct Known Subclasses:
    XercesBridge_2_2

    public abstract class XercesBridge
    extends java.lang.Object
    This class allows to transparently handle Xerces methods that have changed among versions.
    Author:
    Marc Guillemot
    • Constructor Summary

      Constructors 
      Constructor Description
      XercesBridge()  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      static XercesBridge getInstance()
      The access point for the bridge.
      abstract java.lang.String getVersion()
      Gets the Xerces version used
      void NamespaceContext_declarePrefix​(org.apache.xerces.xni.NamespaceContext namespaceContext, java.lang.String ns, java.lang.String avalue)
      Default implementation does nothing
      void XMLDocumentFilter_setDocumentSource​(org.apache.xerces.xni.parser.XMLDocumentFilter filter, org.apache.xerces.xni.parser.XMLDocumentSource lastSource)
      Calls setDocumentSource (if available in the Xerces version used) on the XMLDocumentFilter.
      void XMLDocumentHandler_endPrefixMapping​(org.apache.xerces.xni.XMLDocumentHandler documentHandler, java.lang.String prefix, org.apache.xerces.xni.Augmentations augs)
      Calls endPrefixMapping on the XMLDocumentHandler.
      abstract void XMLDocumentHandler_startDocument​(org.apache.xerces.xni.XMLDocumentHandler documentHandler, org.apache.xerces.xni.XMLLocator locator, java.lang.String encoding, org.apache.xerces.xni.NamespaceContext nscontext, org.apache.xerces.xni.Augmentations augs)
      Calls startDocument on the XMLDocumentHandler.
      void XMLDocumentHandler_startPrefixMapping​(org.apache.xerces.xni.XMLDocumentHandler documentHandler, java.lang.String prefix, java.lang.String uri, org.apache.xerces.xni.Augmentations augs)
      Calls startPrefixMapping on the XMLDocumentHandler.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XercesBridge

        public XercesBridge()
    • Method Detail

      • getInstance

        public static XercesBridge getInstance()
        The access point for the bridge.
        Returns:
        the instance corresponding to the Xerces version being currently used.
      • NamespaceContext_declarePrefix

        public void NamespaceContext_declarePrefix​(org.apache.xerces.xni.NamespaceContext namespaceContext,
                                                   java.lang.String ns,
                                                   java.lang.String avalue)
        Default implementation does nothing
        Parameters:
        namespaceContext -
        ns -
        avalue -
      • getVersion

        public abstract java.lang.String getVersion()
        Gets the Xerces version used
        Returns:
        the version
      • XMLDocumentHandler_startDocument

        public abstract void XMLDocumentHandler_startDocument​(org.apache.xerces.xni.XMLDocumentHandler documentHandler,
                                                              org.apache.xerces.xni.XMLLocator locator,
                                                              java.lang.String encoding,
                                                              org.apache.xerces.xni.NamespaceContext nscontext,
                                                              org.apache.xerces.xni.Augmentations augs)
        Calls startDocument on the XMLDocumentHandler.
      • XMLDocumentHandler_startPrefixMapping

        public void XMLDocumentHandler_startPrefixMapping​(org.apache.xerces.xni.XMLDocumentHandler documentHandler,
                                                          java.lang.String prefix,
                                                          java.lang.String uri,
                                                          org.apache.xerces.xni.Augmentations augs)
        Calls startPrefixMapping on the XMLDocumentHandler.
      • XMLDocumentHandler_endPrefixMapping

        public void XMLDocumentHandler_endPrefixMapping​(org.apache.xerces.xni.XMLDocumentHandler documentHandler,
                                                        java.lang.String prefix,
                                                        org.apache.xerces.xni.Augmentations augs)
        Calls endPrefixMapping on the XMLDocumentHandler.
      • XMLDocumentFilter_setDocumentSource

        public void XMLDocumentFilter_setDocumentSource​(org.apache.xerces.xni.parser.XMLDocumentFilter filter,
                                                        org.apache.xerces.xni.parser.XMLDocumentSource lastSource)
        Calls setDocumentSource (if available in the Xerces version used) on the XMLDocumentFilter. This implementation does nothing.