Class PropertyDeprecationRemover
- java.lang.Object
-
- org.nuxeo.ecm.core.io.impl.transformers.PropertyDeprecationRemover
-
- All Implemented Interfaces:
DocumentTransformer
public class PropertyDeprecationRemover extends Object implements DocumentTransformer
This is aDocumentTransformer
which removes property marked as removed in deprecation system.- Since:
- 9.2
-
-
Field Summary
Fields Modifier and Type Field Description protected SchemaManager
schemaManager
-
Constructor Summary
Constructors Constructor Description PropertyDeprecationRemover()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.dom4j.Element
getParent(int count, org.dom4j.Element elementToRemove)
protected void
handleProperty(org.dom4j.Element schema, String propertyToRemove)
protected void
moveProperty(org.dom4j.Element schema, org.dom4j.Element parent, org.dom4j.Element elementToRemove, String fallback)
boolean
transform(ExportedDocument xdoc)
Transforms the given document and returns true to pass to the next transformer or false to exit from the transformation chain.
-
-
-
Field Detail
-
schemaManager
protected final SchemaManager schemaManager
-
-
Constructor Detail
-
PropertyDeprecationRemover
public PropertyDeprecationRemover()
-
-
Method Detail
-
transform
public boolean transform(ExportedDocument xdoc)
Description copied from interface:DocumentTransformer
Transforms the given document and returns true to pass to the next transformer or false to exit from the transformation chain.- Specified by:
transform
in interfaceDocumentTransformer
- Parameters:
xdoc
- the document to transform- Returns:
- true to continue with the next transformer or false to exit transformation chain
-
handleProperty
protected void handleProperty(org.dom4j.Element schema, String propertyToRemove)
-
getParent
protected org.dom4j.Element getParent(int count, org.dom4j.Element elementToRemove)
-
moveProperty
protected void moveProperty(org.dom4j.Element schema, org.dom4j.Element parent, org.dom4j.Element elementToRemove, String fallback)
-
-