Class SystemViewHandler
- java.lang.Object
-
- org.apache.excalibur.xml.sax.ContentHandlerProxy
-
- org.ametys.plugins.contentio.archive.SystemViewHandler
-
- All Implemented Interfaces:
ContentHandler
public class SystemViewHandler extends ContentHandlerProxy
ContentHandler filtering first level elements from the JCR system view export of a plugin Node.
-
-
Constructor Summary
Constructors Constructor Description SystemViewHandler(ContentHandler handler, Predicate<String> nodeNamePredicate, Predicate<String> propertyNamePredicate)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(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, startPrefixMapping
-
-
-
-
Constructor Detail
-
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 Detail
-
startElement
public void startElement(String uri, String loc, String raw, Attributes a) throws SAXException
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classContentHandlerProxy- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int len) throws SAXException
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classContentHandlerProxy- Throws:
SAXException
-
endElement
public void endElement(String uri, String loc, String raw) throws SAXException
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classContentHandlerProxy- Throws:
SAXException
-
-