Class PropertyDeprecationRemover
java.lang.Object
org.nuxeo.ecm.core.io.impl.transformers.PropertyDeprecationRemover
- All Implemented Interfaces:
DocumentTransformer
This is a
DocumentTransformer
which removes property marked as removed in deprecation system.- Since:
- 9.2
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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 Details
-
schemaManager
-
-
Constructor Details
-
PropertyDeprecationRemover
public PropertyDeprecationRemover()
-
-
Method Details
-
transform
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
-
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)
-