org.milyn.cdres.trans
Class RenameAttributeTU

java.lang.Object
  extended by org.milyn.cdres.trans.RenameAttributeTU
All Implemented Interfaces:
ContentHandler, DOMElementVisitor, DOMVisitAfter, DOMVisitBefore, DOMVisitor, Visitor

public class RenameAttributeTU
extends Object
implements DOMElementVisitor

Renames an attribute from a DOM element during the processing phase.

.cdrl Configuration

 <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.

Author:
tfennelly

Constructor Summary
RenameAttributeTU()
           
 
Method Summary
 void visitAfter(Element element, ExecutionContext executionContext)
           
 void visitBefore(Element element, ExecutionContext executionContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenameAttributeTU

public RenameAttributeTU()
Method Detail

visitBefore

public void visitBefore(Element element,
                        ExecutionContext executionContext)
Specified by:
visitBefore in interface DOMVisitBefore

visitAfter

public void visitAfter(Element element,
                       ExecutionContext executionContext)
Specified by:
visitAfter in interface DOMVisitAfter


Copyright © 2011. All Rights Reserved.