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 void
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
-
-
-
-
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:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classContentHandlerProxy
- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int len) throws SAXException
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classContentHandlerProxy
- Throws:
SAXException
-
endElement
public void endElement(String uri, String loc, String raw) throws SAXException
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classContentHandlerProxy
- Throws:
SAXException
-
-