public class PropertyDeprecationRemover extends Object implements DocumentTransformer
DocumentTransformer
which removes property marked as removed in deprecation system.Modifier and Type | Field and Description |
---|---|
protected PropertyDeprecationHandler |
removeHandler |
protected SchemaManager |
schemaManager |
Constructor and Description |
---|
PropertyDeprecationRemover() |
Modifier and Type | Method and Description |
---|---|
protected void |
handleProperty(org.dom4j.Element schema,
String propertyToRemove) |
protected void |
moveAndDetachProperty(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.
|
protected final SchemaManager schemaManager
protected final PropertyDeprecationHandler removeHandler
public PropertyDeprecationRemover()
public boolean transform(ExportedDocument xdoc) throws IOException
DocumentTransformer
transform
in interface DocumentTransformer
xdoc
- the document to transformIOException
protected void handleProperty(org.dom4j.Element schema, String propertyToRemove)
protected void moveAndDetachProperty(org.dom4j.Element schema, org.dom4j.Element parent, org.dom4j.Element elementToRemove, String fallback)
Copyright © 2018 Nuxeo. All rights reserved.