com.ibm.di.util
Class ParameterSubstitutionCache

java.lang.Object
  extended by com.ibm.di.util.ParameterSubstitutionCache

public class ParameterSubstitutionCache
extends Object


Constructor Summary
ParameterSubstitutionCache()
           
 
Method Summary
static boolean isExpression(String str)
          Returns true if str contains expressions
 void put(String objectName, Object object)
           
static String stripExpression(String str)
          Remove the enclosing curly braces from an expression.
 String substitute(String str, String objectName, Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterSubstitutionCache

public ParameterSubstitutionCache()
Method Detail

isExpression

public static boolean isExpression(String str)
Returns true if str contains expressions


stripExpression

public static String stripExpression(String str)
Remove the enclosing curly braces from an expression. We only do this if there is a nested {{}} present.

Parameters:
str -
Returns:
The string without the braces

substitute

public String substitute(String str,
                         String objectName,
                         Object object)
                  throws Exception
Throws:
Exception

put

public void put(String objectName,
                Object object)