com.opensymphony.xwork.util
Class TextParseUtil
java.lang.Object
com.opensymphony.xwork.util.TextParseUtil
public class TextParseUtil
- extends Object
Utility class for text parsing.
- Author:
- Jason Carreira
Created Feb 10, 2003 8:55:11 PM
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextParseUtil
public TextParseUtil()
translateVariables
public static String translateVariables(String expression,
OgnlValueStack stack)
- Converts all instances of ${...} in
expression to the value returned
by a call to OgnlValueStack.findValue(java.lang.String). If an item cannot
be found on the stack (null is returned), then the entire variable ${...} is not
displayed, just as if the item was on the stack but returned an empty string.
- Parameters:
expression - an expression that hasn't yet been translated
- Returns:
- the parsed expression
translateVariables
public static String translateVariables(char open,
String expression,
OgnlValueStack stack)
translateVariables
public static Object translateVariables(char open,
String expression,
OgnlValueStack stack,
Class asType)
commaDelimitedStringToSet
public static Set commaDelimitedStringToSet(String s)