Class TargetImportHandler

  • All Implemented Interfaces:
    org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

    public abstract class TargetImportHandler
    extends org.xml.sax.helpers.DefaultHandler
    TargetImportHandler serves as the base class for the concrete classes {@link DocViewImportHandler} and {@link SysViewImportHandler}.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected TargetImportHandler​(org.apache.jackrabbit.oak.spi.xml.Importer importer, SessionContext sessionContext)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.jackrabbit.oak.namepath.NamePathMapper currentNamePathMapper()  
      void endDocument()
      Closes the underlying Importer instance.
      void endPrefixMapping​(java.lang.String prefix)  
      void startDocument()
      Initializes the underlying Importer instance.
      void startPrefixMapping​(java.lang.String prefix, java.lang.String uri)  
      • Methods inherited from class org.xml.sax.helpers.DefaultHandler

        characters, endElement, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startElement, unparsedEntityDecl, warning
      • Methods inherited from class java.lang.Object

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

      • importer

        protected final org.apache.jackrabbit.oak.spi.xml.Importer importer
    • Constructor Detail

      • TargetImportHandler

        protected TargetImportHandler​(org.apache.jackrabbit.oak.spi.xml.Importer importer,
                                      SessionContext sessionContext)
    • Method Detail

      • startPrefixMapping

        public void startPrefixMapping​(java.lang.String prefix,
                                       java.lang.String uri)
                                throws org.xml.sax.SAXException
        Specified by:
        startPrefixMapping in interface org.xml.sax.ContentHandler
        Overrides:
        startPrefixMapping in class org.xml.sax.helpers.DefaultHandler
        Throws:
        org.xml.sax.SAXException
      • endPrefixMapping

        public void endPrefixMapping​(java.lang.String prefix)
                              throws org.xml.sax.SAXException
        Specified by:
        endPrefixMapping in interface org.xml.sax.ContentHandler
        Overrides:
        endPrefixMapping in class org.xml.sax.helpers.DefaultHandler
        Throws:
        org.xml.sax.SAXException
      • startDocument

        public void startDocument()
                           throws org.xml.sax.SAXException
        Initializes the underlying Importer instance. This method is called by the XML parser when the XML document starts.
        Specified by:
        startDocument in interface org.xml.sax.ContentHandler
        Overrides:
        startDocument in class org.xml.sax.helpers.DefaultHandler
        Throws:
        org.xml.sax.SAXException - if the importer can not be initialized
        See Also:
        DefaultHandler.startDocument()
      • endDocument

        public void endDocument()
                         throws org.xml.sax.SAXException
        Closes the underlying Importer instance. This method is called by the XML parser when the XML document ends.
        Specified by:
        endDocument in interface org.xml.sax.ContentHandler
        Overrides:
        endDocument in class org.xml.sax.helpers.DefaultHandler
        Throws:
        org.xml.sax.SAXException - if the importer can not be closed
        See Also:
        DefaultHandler.endDocument()
      • currentNamePathMapper

        public org.apache.jackrabbit.oak.namepath.NamePathMapper currentNamePathMapper()