public class RenameAttributeTU extends Object implements DOMElementVisitor
<smooks-resource useragent="device/profile" selector="target-element-name" path="org.milyn.cdres.trans.RenameAttributeTU"> <!-- The name of the element attribute to be renamed. --> <param name="attributeName">attribute-name</param> <!-- The new name of the element attribute. --> <param name="attributeNewName">attribute-new-name</param> <!-- (Optional) Overwrite existing attributes of the same name. Default false. --> <param name="overwrite">true/false</param> <!-- (Optional) Visit the target element before iterating over the elements child content. Default false. --> <param name="visitBefore">true/false</param> </smooks-resource>See
SmooksResourceConfiguration
.Constructor and Description |
---|
RenameAttributeTU() |
Modifier and Type | Method and Description |
---|---|
void |
visitAfter(Element element,
ExecutionContext executionContext)
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 executionContext)
DOMVisitAfter
visitAfter
in interface DOMVisitAfter
element
- The DOM element being visited.executionContext
- Request relative instance.Copyright © 2020. All rights reserved.