Package org.eclnt.jsfserver.util
Class ExpressionUtil
java.lang.Object
org.eclnt.jsfserver.util.ExpressionUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
buildAbsoluteExpressionFromRelativeExpression
(String expression, String expressionPrefix) static boolean
checkIfExpressionContainsIErrorAwareImplementation
(javax.faces.context.FacesContext context, String expression) static boolean
checkIfExpressionIsRelativeExpression
(String expression) static String
createParentExpression
(String expression) Creates parent expression for this expression.static int
findBeginOfRelativeExpression
(String expression) static int
findEndOfRelativeExpression
(String expression, int fromIndex) static String
findLastPropertyName
(String expression) Find last property name in epxression.
-
Constructor Details
-
ExpressionUtil
public ExpressionUtil()
-
-
Method Details
-
createParentExpression
Creates parent expression for this expression. Returns null in case of problems.
Example 1: "#{x.y.z}" => "#{x.y}"
Example 2: "#{x.y['z']}" => "#{x.y}"
Example 3: "#{x.y["z"]}" => "#{x.y}"
Example 3: "#{x.y[1]}" => "#{x.y}" -
findLastPropertyName
Find last property name in epxression. Returns null in case of problems.
Example 1: "#{x.y.z}" => "z"
Example 2: "#{x.y['z']}" => "z"
Example 3: "#{x.y["z"]}" => "z"
Example 3: "#{x.y[1]}" => "1" -
isolateExpressionsFromString
-
checkIfExpressionContainsIErrorAwareImplementation
public static boolean checkIfExpressionContainsIErrorAwareImplementation(javax.faces.context.FacesContext context, String expression) -
checkIfExpressionIsRelativeExpression
-
findBeginOfRelativeExpression
-
findEndOfRelativeExpression
-
buildAbsoluteExpressionFromRelativeExpression
-