|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.uif.util.ExpressionUtils
public class ExpressionUtils
Utility class for UIF expressions
Constructor Summary | |
---|---|
ExpressionUtils()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpressionUtils()
Method Detail |
---|
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 adjust
protected static String getLinePathPrefixValue(Component component)
component
- - component instance for which the prefix is configured on
protected static boolean moveNestedPropertyExpression(Object object, String propertyName, String expression)
object
- - the object containing the expressionpropertyName
- - the property the expression is onexpression
- - the expression to move
public static String parseExpression(String exp, List<String> controlNames)
exp
- controlNames
-
public static void evaluateCurrentStack(String stack, List<String> controlNames)
stack
- controlNames
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |