Class DefaultEntryParser
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.sling.feature.cpconverter.shared.AbstractJcrNodeParser<Set<String>>
org.apache.sling.feature.cpconverter.handlers.DefaultEntryParser
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
Implementation of
AbstractJcrNodeParser
that builds and records paths of all elements (nodes) using the
specified initial repository path.-
Field Summary
Fields inherited from class org.apache.sling.feature.cpconverter.shared.AbstractJcrNodeParser
detectedPrimaryType, JCR_ROOT
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultEntryParser
(@NotNull String repositoryPath) Create a newDefaultEntryParser
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
endElement
(String uri, String localName, String qName) protected void
onJcrRootElement
(String uri, String localName, String qName, Attributes attributes) void
startElement
(String uri, String localName, String qName, Attributes attributes) Methods inherited from class org.apache.sling.feature.cpconverter.shared.AbstractJcrNodeParser
onJcrRootNode, parse
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
-
Constructor Details
-
DefaultEntryParser
Create a newDefaultEntryParser
.- Parameters:
repositoryPath
- The base repository path used to build absolute paths from the parsed elements.
-
-
Method Details
-
startElement
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classAbstractJcrNodeParser<Set<String>>
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
-
onJcrRootElement
- Specified by:
onJcrRootElement
in classAbstractJcrNodeParser<Set<String>>
-
getParsingResult
- Specified by:
getParsingResult
in classAbstractJcrNodeParser<Set<String>>
- Returns:
- All node paths recorded by this parser instance.
-