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
ConstructorsConstructorDescriptionSystemViewHandler(ContentHandler handler, Predicate<String> nodeNamePredicate, Predicate<String> propertyNamePredicate) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int len) voidendElement(String uri, String loc, String raw) voidstartElement(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, startPrefixMappingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
startElementin interfaceContentHandler- Overrides:
startElementin classContentHandlerProxy- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classContentHandlerProxy- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classContentHandlerProxy- Throws:
SAXException
-