org.apache.jackrabbit.oak.jcr.xml
Class TargetImportHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
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}
.
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 |
importer
protected final org.apache.jackrabbit.oak.spi.xml.Importer importer
sessionContext
protected final SessionContext sessionContext
TargetImportHandler
protected TargetImportHandler(org.apache.jackrabbit.oak.spi.xml.Importer importer,
SessionContext sessionContext)
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.