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 a DocumentTransformer which removes property marked as removed in deprecation system.
Since:
9.2
  • Field Details

  • Constructor Details

    • PropertyDeprecationRemover

      public PropertyDeprecationRemover()
  • Method Details

    • 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 interface DocumentTransformer
      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)