org.jboss.soa.esb.notification
Class MacroExpander

java.lang.Object
  extended by org.jboss.soa.esb.notification.MacroExpander

public class MacroExpander
extends java.lang.Object

MacroExpander class.

This class takes a DOM and iterates over it, replacing all "macro" tokens in any attribute values using the values from the supplied Map.

Author:
Esteban Shifman

Field Summary
static java.lang.String CTX_BATCH_NUM
           
static java.lang.String CTX_BATCH_UID
           
static java.lang.String CTX_INPUT_FILE
           
static java.lang.String CTX_POST_FILE
           
 
Constructor Summary
MacroExpander()
           
 
Method Summary
static void replaceMacros(DomElement domTree, java.util.Map replacementTokenMapMap)
          Perform a macro replacement on the DOM tree attribute values of the supplied DomElement using the supplied macro token replacement map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CTX_BATCH_UID

public static final java.lang.String CTX_BATCH_UID
See Also:
Constant Field Values

CTX_BATCH_NUM

public static final java.lang.String CTX_BATCH_NUM
See Also:
Constant Field Values

CTX_INPUT_FILE

public static final java.lang.String CTX_INPUT_FILE
See Also:
Constant Field Values

CTX_POST_FILE

public static final java.lang.String CTX_POST_FILE
See Also:
Constant Field Values
Constructor Detail

MacroExpander

public MacroExpander()
Method Detail

replaceMacros

public static void replaceMacros(DomElement domTree,
                                 java.util.Map replacementTokenMapMap)
Perform a macro replacement on the DOM tree attribute values of the supplied DomElement using the supplied macro token replacement map.

Parameters:
domTree - The DOM Tree to be operated on.
replacementTokenMapMap - The token replacement map.