Class SystemViewHandler
java.lang.Object
org.apache.excalibur.xml.sax.ContentHandlerProxy
org.ametys.plugins.contentio.archive.SystemViewHandler
- All Implemented Interfaces:
ContentHandler
ContentHandler filtering first level elements from the JCR system view export of a plugin Node.
-
Constructor Summary
ConstructorDescriptionSystemViewHandler
(ContentHandler handler, Predicate<String> nodeNamePredicate, Predicate<String> propertyNamePredicate) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int len) void
endElement
(String uri, String loc, String raw) void
startElement
(String uri, String loc, String raw, Attributes a) Methods inherited from class org.apache.excalibur.xml.sax.ContentHandlerProxy
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setContentHandler, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
SystemViewHandler
public SystemViewHandler(ContentHandler handler, Predicate<String> nodeNamePredicate, Predicate<String> propertyNamePredicate) Constructor.- Parameters:
handler
- the destinationContentHandler
.nodeNamePredicate
- first level nodes not matching this Predicate will be filtered outpropertyNamePredicate
- first level properties not matching this Predicate will be filtered out
-
-
Method Details
-
startElement
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classContentHandlerProxy
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classContentHandlerProxy
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classContentHandlerProxy
- Throws:
SAXException
-