org.milyn.cdres.trans
Class RenameElementTU
java.lang.Object
org.milyn.cdres.trans.RenameElementTU
- All Implemented Interfaces:
- ContentHandler, DOMElementVisitor, DOMVisitAfter, DOMVisitBefore, DOMVisitor, Visitor
public class RenameElementTU
- extends Object
- implements DOMElementVisitor
Renames/replaces an element in the document during the processing phase.
The element is visited by this Processing Unit after it's child content
has been iterated over.
See DomUtils.renameElement(org.w3c.dom.Element, java.lang.String, boolean, boolean).
.cdrl Configuration
<smooks-resource useragent="device/profile" selector="target-element-name" path="org.milyn.cdres.trans.RenameElementTU">
<!-- The name of the replacement element. -->
<param name="replacementElement">replacement-element-name</param>
<!-- (Optional) Copy target elements child content to the replacement
element. Default is true. -->
<param name="keepChildContent">true/false</param>
<!-- (Optional) Copy target elements attributes to the replacement
element. Default is true. -->
<param name="keepAttributes">true/false</param>
</smooks-resource>
See SmooksResourceConfiguration.
- Author:
- tfennelly
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RenameElementTU
public RenameElementTU()
visitBefore
public void visitBefore(Element element,
ExecutionContext executionContext)
- Specified by:
visitBefore in interface DOMVisitBefore
visitAfter
public void visitAfter(Element element,
ExecutionContext request)
- Specified by:
visitAfter in interface DOMVisitAfter
Copyright © 2011. All Rights Reserved.