|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.XMLFilterImpl info.magnolia.importexport.filters.SkipNodePropertyFilter info.magnolia.importexport.filters.UselessNameFilter
public class UselessNameFilter
A filter that can be used to remove optional "name" attributes in template, dialogs or paragraph nodes. The name attribute was required in magnolia 2, magnolia 3 makes use of the name of the containing node. This filter can be used to cleanup old configurations that survived to copy and paste. Not enabled by default, you need to modify DataTransporter in order to use it (see the comments in DataTransporter.importXmlStream())
Nested Class Summary |
---|
Nested classes/interfaces inherited from class info.magnolia.importexport.filters.SkipNodePropertyFilter |
---|
SkipNodePropertyFilter.BufferedElement |
Field Summary |
---|
Fields inherited from class info.magnolia.importexport.filters.SkipNodePropertyFilter |
---|
invalue, lastNodeName, log, skipProperty |
Constructor Summary | |
---|---|
UselessNameFilter(XMLReader parent)
Instantiates a new filter. |
Method Summary | |
---|---|
protected boolean |
filter(String propertyValue,
String parentNodeName)
Implement this method to specificy if a given property (given its value and the parent node name) should be removed. |
protected String |
getFilteredPropertyName()
Implement this method to specify the name of the property you want to filter. |
Methods inherited from class info.magnolia.importexport.filters.SkipNodePropertyFilter |
---|
characters, endElement, startElement |
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UselessNameFilter(XMLReader parent)
parent
- wrapped XMLReaderMethod Detail |
---|
protected String getFilteredPropertyName()
SkipNodePropertyFilter
getFilteredPropertyName
in class SkipNodePropertyFilter
protected boolean filter(String propertyValue, String parentNodeName)
SkipNodePropertyFilter
filter
in class SkipNodePropertyFilter
propertyValue
- property valueparentNodeName
- parent node name
true
if this property should be removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |