public class RenameElementTU extends Object implements DOMElementVisitor
DomUtils.renameElement(org.w3c.dom.Element, java.lang.String, boolean, boolean)
.
<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
.Constructor and Description |
---|
RenameElementTU() |
Modifier and Type | Method and Description |
---|---|
void |
visitAfter(Element element,
ExecutionContext request)
Visit the supplied element after visiting its child elements.
|
void |
visitBefore(Element element,
ExecutionContext executionContext)
Visit the supplied element before visiting its child elements.
|
public void visitBefore(Element element, ExecutionContext executionContext)
DOMVisitBefore
visitBefore
in interface DOMVisitBefore
element
- The DOM element being visited.executionContext
- Request relative instance.public void visitAfter(Element element, ExecutionContext request)
DOMVisitAfter
visitAfter
in interface DOMVisitAfter
element
- The DOM element being visited.request
- Request relative instance.Copyright © 2020. All rights reserved.