public abstract class TargetImportHandler extends DefaultHandler
TargetImportHandler
serves as the base class for the concrete
classes {@link DocViewImportHandler}
and
{@link SysViewImportHandler}
.Modifier and Type | Class and Description |
---|---|
protected class |
TargetImportHandler.NameInfo |
Modifier and Type | Field and Description |
---|---|
protected org.apache.jackrabbit.oak.spi.xml.Importer |
importer |
protected SessionContext |
sessionContext |
Modifier | Constructor and Description |
---|---|
protected |
TargetImportHandler(org.apache.jackrabbit.oak.spi.xml.Importer importer,
SessionContext sessionContext) |
Modifier and Type | Method and Description |
---|---|
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) |
characters, endElement, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startElement, unparsedEntityDecl, warning
protected final org.apache.jackrabbit.oak.spi.xml.Importer importer
protected final SessionContext sessionContext
protected TargetImportHandler(org.apache.jackrabbit.oak.spi.xml.Importer importer, SessionContext sessionContext)
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
startPrefixMapping
in class DefaultHandler
SAXException
public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
endPrefixMapping
in class DefaultHandler
SAXException
public void startDocument() throws SAXException
Importer
instance. This method
is called by the XML parser when the XML document starts.startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
SAXException
- if the importer can not be initializedDefaultHandler.startDocument()
public void endDocument() throws SAXException
Importer
instance. This method
is called by the XML parser when the XML document ends.endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
SAXException
- if the importer can not be closedDefaultHandler.endDocument()
public org.apache.jackrabbit.oak.namepath.NamePathMapper currentNamePathMapper()
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.