| java.lang.Object com.opensymphony.xwork.util.OgnlValueStack
OgnlValueStack | public class OgnlValueStack implements Serializable(Code) | | OgnlValueStack allows multiple beans to be pushed in and dynamic Ognl expressions to be evaluated against it. When
evaluating an expression, the stack will be searched down the stack, from the latest objects pushed in to the
earliest, looking for a bean with a getter or setter for the given property or a method of the given name (depending
on the expression being evaluated).
author: Patrick Lightbody |
Inner Class :public static class ObjectAccessor extends ObjectPropertyAccessor | |
REPORT_ERRORS_ON_NO_PROP | final public static String REPORT_ERRORS_ON_NO_PROP(Code) | | |
OgnlValueStack | public OgnlValueStack()(Code) | | |
findValue | public Object findValue(String expr)(Code) | | Find a value by evaluating the given expression against the stack in the default search order.
Parameters: expr - the expression giving the path of properties to navigate to find the property value to return the result of evaluating the expression |
findValue | public Object findValue(String expr, Class asType)(Code) | | Find a value by evaluating the given expression against the stack in the default search order.
Parameters: expr - the expression giving the path of properties to navigate to find the property value to return Parameters: asType - the type to convert the return value to the result of evaluating the expression |
getRoot | public CompoundRoot getRoot()(Code) | | Get the CompoundRoot which holds the objects pushed onto the stack
|
isDevModeEnabled | public boolean isDevModeEnabled()(Code) | | Determine whether devMode is enabled.
true if devMode was enabled, false otherwise. |
pop | public Object pop()(Code) | | Get the object on the top of the stack and remove it from the stack.
the object on the top of the stack See Also: CompoundRoot.pop |
reset | public static void reset()(Code) | | |
setDefaultType | public void setDefaultType(Class defaultType)(Code) | | Sets the default type to convert to if no type is provided when getting a value.
Parameters: defaultType - |
setExprOverrides | public void setExprOverrides(Map overrides)(Code) | | |
setValue | public void setValue(String expr, Object value)(Code) | | Attempts to set a property on a bean in the stack with the given expression using the default search order.
Parameters: expr - the expression defining the path to the property to be set. Parameters: value - the value to be set into the neamed property |
setValue | public void setValue(String expr, Object value, boolean throwExceptionOnFailure)(Code) | | Attempts to set a property on a bean in the stack with the given expression using the default search order.
Parameters: expr - the expression defining the path to the property to be set. Parameters: value - the value to be set into the neamed property Parameters: throwExceptionOnFailure - a flag to tell whether an exception should be thrown if there is no property withthe given name. |
size | public int size()(Code) | | Get the number of objects in the stack
s
the number of objects in the stack |
|
|