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}
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
TargetImportHandler.NameInfo
-
Field Summary
Fields Modifier and Type Field Description protected Importer
importer
protected SessionContext
sessionContext
-
Constructor Summary
Constructors Modifier Constructor Description protected
TargetImportHandler(Importer importer, SessionContext sessionContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamePathMapper
currentNamePathMapper()
void
endDocument()
Closes the underlyingImporter
instance.void
endPrefixMapping(String prefix)
void
startDocument()
Initializes the underlyingImporter
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
-
-
-
-
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:
startPrefixMapping
in interfaceContentHandler
- Overrides:
startPrefixMapping
in classDefaultHandler
- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String prefix) throws SAXException
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Overrides:
endPrefixMapping
in classDefaultHandler
- Throws:
SAXException
-
startDocument
public void startDocument() throws SAXException
Initializes the underlyingImporter
instance. This method is called by the XML parser when the XML document starts.- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classDefaultHandler
- Throws:
SAXException
- if the importer can not be initialized- See Also:
DefaultHandler.startDocument()
-
endDocument
public void endDocument() throws SAXException
Closes the underlyingImporter
instance. This method is called by the XML parser when the XML document ends.- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classDefaultHandler
- Throws:
SAXException
- if the importer can not be closed- See Also:
DefaultHandler.endDocument()
-
currentNamePathMapper
public NamePathMapper currentNamePathMapper()
-
-