public class ExpressionUtils extends Object
| Constructor and Description | 
|---|
| ExpressionUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | adjustPropertyExpressions(View view,
                         Object object)Adjusts the property expressions for a given object. | 
| static void | evaluateCurrentStack(String stack,
                    List<String> controlNames)Used internally by parseExpression to evalute if the current stack is a property
 name (ie, will be a control on the form) | 
| protected static String | getLinePathPrefixValue(Component component)Determines the value for the org.kuali.rice.krad.uif.UifConstants#LINE_PATH_BIND_ADJUST_PREFIX binding prefix
 based on collection group found in the component context | 
| protected static boolean | moveNestedPropertyExpression(Object object,
                            String propertyName,
                            String expression)Moves any nested property expressions to the parent object | 
| static String | parseExpression(String exp,
               List<String> controlNames)Takes in an expression and a list to be filled in with names(property names)
 of controls found in the expression. | 
| static String | replaceBindingPrefixes(View view,
                      Object object,
                      String expression)Adjusts the property expressions for a given object | 
public ExpressionUtils()
public static void adjustPropertyExpressions(View view, Object object)
The org.kuali.rice.krad.uif.UifConstants#NO_BIND_ADJUST_PREFIX prefix will be removed as this is a placeholder indicating that the property is directly on the form. The org.kuali.rice.krad.uif.UifConstants#FIELD_PATH_BIND_ADJUST_PREFIX prefix will be replaced by the object's field path - this is only applicable to DataFields. The org.kuali.rice.krad.uif.UifConstants#DEFAULT_PATH_BIND_ADJUST_PREFIX prefix will be replaced by the view's default path if it is set.
view - - the parent view of the objectobject - - Object to adjust property expressions onpublic static String replaceBindingPrefixes(View view, Object object, String expression)
The org.kuali.rice.krad.uif.UifConstants#NO_BIND_ADJUST_PREFIX prefix will be removed as this is a placeholder indicating that the property is directly on the form. The org.kuali.rice.krad.uif.UifConstants#FIELD_PATH_BIND_ADJUST_PREFIX prefix will be replaced by the object's field path - this is only applicable to DataFields. The org.kuali.rice.krad.uif.UifConstants#DEFAULT_PATH_BIND_ADJUST_PREFIX prefix will be replaced by the view's default path if it is set.
view - - the parent view of the objectobject - - Object to adjust property expressions onexpression - - The expression to adjustprotected static String getLinePathPrefixValue(Component component)
component - - component instance for which the prefix is configured onprotected static boolean moveNestedPropertyExpression(Object object, String propertyName, String expression)
object - - the object containing the expressionpropertyName - - the property the expression is onexpression - - the expression to movepublic static String parseExpression(String exp, List<String> controlNames)
exp - controlNames - public static void evaluateCurrentStack(String stack, List<String> controlNames)
stack - controlNames - Copyright © 2005–2016 The Kuali Foundation. All rights reserved.