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
TargetImportHandlerserves as the base class for the concrete classes{@link DocViewImportHandler}and{@link SysViewImportHandler}.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classTargetImportHandler.NameInfo
-
Field Summary
Fields Modifier and Type Field Description protected Importerimporterprotected SessionContextsessionContext
-
Constructor Summary
Constructors Modifier Constructor Description protectedTargetImportHandler(Importer importer, SessionContext sessionContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamePathMappercurrentNamePathMapper()voidendDocument()Closes the underlyingImporterinstance.voidendPrefixMapping(String prefix)voidstartDocument()Initializes the underlyingImporterinstance.voidstartPrefixMapping(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
-
-
-
-
Field Detail
-
importer
protected final Importer importer
-
sessionContext
protected final SessionContext sessionContext
-
-
Constructor Detail
-
TargetImportHandler
protected TargetImportHandler(Importer importer, SessionContext sessionContext)
-
-
Method Detail
-
startPrefixMapping
public void startPrefixMapping(String prefix, String uri) throws SAXException
- Specified by:
startPrefixMappingin interfaceContentHandler- Overrides:
startPrefixMappingin classDefaultHandler- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String prefix) throws SAXException
- Specified by:
endPrefixMappingin interfaceContentHandler- Overrides:
endPrefixMappingin classDefaultHandler- Throws:
SAXException
-
startDocument
public void startDocument() throws SAXExceptionInitializes the underlyingImporterinstance. This method is called by the XML parser when the XML document starts.- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classDefaultHandler- Throws:
SAXException- if the importer can not be initialized- See Also:
DefaultHandler.startDocument()
-
endDocument
public void endDocument() throws SAXExceptionCloses the underlyingImporterinstance. This method is called by the XML parser when the XML document ends.- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classDefaultHandler- Throws:
SAXException- if the importer can not be closed- See Also:
DefaultHandler.endDocument()
-
currentNamePathMapper
public NamePathMapper currentNamePathMapper()
-
-