org.apache.jackrabbit.oak.jcr.xml
Class TargetImportHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.apache.jackrabbit.oak.jcr.xml.TargetImportHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public abstract class TargetImportHandler
extends DefaultHandler

TargetImportHandler serves as the base class for the concrete classes {@link DocViewImportHandler} and {@link SysViewImportHandler}.


Nested Class Summary
protected  class TargetImportHandler.NameInfo
           
 
Field Summary
protected  org.apache.jackrabbit.oak.spi.xml.Importer importer
           
protected  SessionContext sessionContext
           
 
Constructor Summary
protected TargetImportHandler(org.apache.jackrabbit.oak.spi.xml.Importer importer, SessionContext sessionContext)
           
 
Method Summary
 org.apache.jackrabbit.oak.namepath.NamePathMapper currentNamePathMapper()
           
 void endDocument()
          Closes the underlying Importer instance.
 void endPrefixMapping(String prefix)
           
 void startDocument()
          Initializes the underlying Importer instance.
 void startPrefixMapping(String prefix, 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

sessionContext

protected final SessionContext sessionContext
Constructor Detail

TargetImportHandler

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

startPrefixMapping

public void startPrefixMapping(String prefix,
                               String uri)
                        throws SAXException
Specified by:
startPrefixMapping in interface ContentHandler
Overrides:
startPrefixMapping in class DefaultHandler
Throws:
SAXException

endPrefixMapping

public void endPrefixMapping(String prefix)
                      throws SAXException
Specified by:
endPrefixMapping in interface ContentHandler
Overrides:
endPrefixMapping in class DefaultHandler
Throws:
SAXException

startDocument

public void startDocument()
                   throws SAXException
Initializes the underlying Importer instance. This method is called by the XML parser when the XML document starts.

Specified by:
startDocument in interface ContentHandler
Overrides:
startDocument in class DefaultHandler
Throws:
SAXException - if the importer can not be initialized
See Also:
DefaultHandler.startDocument()

endDocument

public void endDocument()
                 throws SAXException
Closes the underlying Importer instance. This method is called by the XML parser when the XML document ends.

Specified by:
endDocument in interface ContentHandler
Overrides:
endDocument in class DefaultHandler
Throws:
SAXException - if the importer can not be closed
See Also:
DefaultHandler.endDocument()

currentNamePathMapper

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


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.