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.
-
-
Field Summary
Fields Modifier and Type Field Description private static String
__SV_NAME
private static String
__SV_NODE
private static String
__SV_NS
private static String
__SV_PROPERTY
private int
_depth
private boolean
_inExcludedTag
private Predicate<String>
_nodeNamePredicate
private Predicate<String>
_propertyNamePredicate
-
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
-
-
-
-
Field Detail
-
__SV_NS
private static final String __SV_NS
- See Also:
- Constant Field Values
-
__SV_NODE
private static final String __SV_NODE
- See Also:
- Constant Field Values
-
__SV_PROPERTY
private static final String __SV_PROPERTY
- See Also:
- Constant Field Values
-
__SV_NAME
private static final String __SV_NAME
- See Also:
- Constant Field Values
-
_inExcludedTag
private boolean _inExcludedTag
-
_depth
private int _depth
-
_nodeNamePredicate
private Predicate<String> _nodeNamePredicate
-
_propertyNamePredicate
private Predicate<String> _propertyNamePredicate
-
-
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
-
-