| java.lang.Object com.opensymphony.xwork.util.TextParseUtil
TextParseUtil | public class TextParseUtil (Code) | | Utility class for text parsing.
author: Jason Carreira author: Rainer Hermanns author: tm_jee version: $Date: 2007-07-16 16:46:59 +0200 (Mon, 16 Jul 2007) $ $Id: TextParseUtil.java 1545 2007-07-16 14:46:59Z mrdon $ |
Inner Class :public static interface ParsedValueEvaluator | |
Method Summary | |
public static Set | commaDelimitedStringToSet(String s) Returns a set from comma delimted Strings.
Parameters: s - The String to parse. | 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) . | public static String | translateVariables(String expression, OgnlValueStack stack, ParsedValueEvaluator evaluator) Function similarly as
TextParseUtil.translateVariables(char,String,OgnlValueStack)
except for the introduction of an additional evaluator that allows
the parsed value to be evaluated by the evaluator . | public static String | translateVariables(char open, String expression, OgnlValueStack stack) Converts all instances of ${...} in expression to the value returned
by a call to
OgnlValueStack.findValue(java.lang.String) . | public static Object | translateVariables(char open, String expression, OgnlValueStack stack, Class asType) Converted object from variable translation. | public static Object | translateVariables(char open, String expression, OgnlValueStack stack, Class asType, ParsedValueEvaluator evaluator) Converted object from variable translation. | public static Object | translateVariables(char open, String expression, OgnlValueStack stack, Class asType, ParsedValueEvaluator evaluator, int maxLoopCount) Converted object from variable translation. |
commaDelimitedStringToSet | public static Set commaDelimitedStringToSet(String s)(Code) | | Returns a set from comma delimted Strings.
Parameters: s - The String to parse. A set from comma delimted Strings. |
translateVariables | public static String translateVariables(String expression, OgnlValueStack stack)(Code) | | 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 the parsed expression |
translateVariables | public static String translateVariables(char open, String expression, OgnlValueStack stack)(Code) | | 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: open - Parameters: expression - Parameters: stack - Translated variable String |
translateVariables | public static Object translateVariables(char open, String expression, OgnlValueStack stack, Class asType)(Code) | | Converted object from variable translation.
Parameters: open - Parameters: expression - Parameters: stack - Parameters: asType - Converted object from variable translation. |
translateVariables | public static Object translateVariables(char open, String expression, OgnlValueStack stack, Class asType, ParsedValueEvaluator evaluator)(Code) | | Converted object from variable translation.
Parameters: open - Parameters: expression - Parameters: stack - Parameters: asType - Parameters: evaluator - Converted object from variable translation. |
translateVariables | public static Object translateVariables(char open, String expression, OgnlValueStack stack, Class asType, ParsedValueEvaluator evaluator, int maxLoopCount)(Code) | | Converted object from variable translation.
Parameters: open - Parameters: expression - Parameters: stack - Parameters: asType - Parameters: evaluator - Converted object from variable translation. |
|
|