Class AbstractJcrNodeParser<O>
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.sling.feature.cpconverter.shared.AbstractJcrNodeParser<O>
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Direct Known Subclasses:
DefaultEntryParser
,MixinParser
,PrimaryTypeParser
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract O
protected abstract void
onJcrRootElement
(String uri, String localName, String qName, Attributes attributes) protected void
onJcrRootNode
(String uri, String localName, String qName, Attributes attributes, String primaryType) parse
(InputStream input) void
startElement
(String uri, String localName, String qName, Attributes attributes) Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
-
Field Details
-
JCR_ROOT
- See Also:
-
detectedPrimaryType
-
-
Constructor Details
-
AbstractJcrNodeParser
-
-
Method Details
-
parse
- Throws:
IOException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
onJcrRootNode
protected void onJcrRootNode(String uri, String localName, String qName, Attributes attributes, String primaryType) -
onJcrRootElement
protected abstract void onJcrRootElement(String uri, String localName, String qName, Attributes attributes) -
getParsingResult
-