|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.foundation.expression.Variables
Utility class to handle replacing ${varname} style variables in Strings.
VariableFinder
Constructor Summary | |
Variables()
|
Method Summary | |
static java.lang.String |
varSubstitute(java.lang.String inStr,
VariableFinder vars)
Perform variable substitution (${varname}) on the specified string using the given variable name to value map. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Variables()
Method Detail |
public static java.lang.String varSubstitute(java.lang.String inStr, VariableFinder vars)
This does not handle any kind of escape sequences (e.g. "\${varname}" would still be replaced).
inStr
- the input string.vars
- the map of variable names to values.
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |