Package com.ibm.di.util
Class ParameterSubstitutionCache
- java.lang.Object
-
- com.ibm.di.util.ParameterSubstitutionCache
-
public class ParameterSubstitutionCache extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ParameterSubstitutionCache()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
isExpression(java.lang.String str)
Returns true if str contains expressionsvoid
put(java.lang.String objectName, java.lang.Object object)
static java.lang.String
stripExpression(java.lang.String str)
Remove the enclosing curly braces from an expression.java.lang.String
substitute(java.lang.String str, java.lang.String objectName, java.lang.Object object)
-
-
-
Method Detail
-
isExpression
public static boolean isExpression(java.lang.String str)
Returns true if str contains expressions
-
stripExpression
public static java.lang.String stripExpression(java.lang.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 java.lang.String substitute(java.lang.String str, java.lang.String objectName, java.lang.Object object) throws java.lang.Exception
- Throws:
java.lang.Exception
-
put
public void put(java.lang.String objectName, java.lang.Object object)
-
-