JcrExportCommand
with JcrExportCommand.DefaultFilter
with PropertyFilteringPredicate
instead.@Deprecated public abstract class SkipNodePropertyFilter extends XMLFilterImpl
Modifier and Type | Class and Description |
---|---|
static class |
SkipNodePropertyFilter.BufferedElement
Deprecated.
Temporary element storage node.
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
invalue
Deprecated.
|
protected String |
lastNodeName
Deprecated.
|
protected org.slf4j.Logger |
log
Deprecated.
|
protected boolean |
skipProperty
Deprecated.
|
Constructor and Description |
---|
SkipNodePropertyFilter(XMLReader parent)
Deprecated.
Instantiates a new filter.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length)
Deprecated.
|
void |
endElement(String uri,
String localName,
String qName)
Deprecated.
|
protected abstract boolean |
filter(String propertyValue,
String parentNodeName)
Deprecated.
Implement this method to specificy if a given property (given its value and the parent node name) should be
removed.
|
protected abstract String |
getFilteredPropertyName()
Deprecated.
Implement this method to specify the name of the property you want to filter.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes atts)
Deprecated.
|
endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
protected org.slf4j.Logger log
protected String lastNodeName
protected boolean skipProperty
protected boolean invalue
public SkipNodePropertyFilter(XMLReader parent)
parent
- wrapped XMLReaderpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class XMLFilterImpl
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class XMLFilterImpl
SAXException
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class XMLFilterImpl
SAXException
protected abstract String getFilteredPropertyName()
protected abstract boolean filter(String propertyValue, String parentNodeName)
propertyValue
- property valueparentNodeName
- parent node nametrue
if this property should be removedCopyright © 2003–2021 Magnolia International Ltd.. All rights reserved.