Package org.eclnt.jsfserver.util
Class ExpressionUtil
java.lang.Object
org.eclnt.jsfserver.util.ExpressionUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildAbsoluteExpressionFromRelativeExpression(String expression, String expressionPrefix) static booleancheckIfExpressionContainsIErrorAwareImplementation(FacesContext context, String expression) static booleancheckIfExpressionIsRelativeExpression(String expression) static StringcreateParentExpression(String expression) Creates parent expression for this expression.static intfindBeginOfRelativeExpression(String expression) static intfindEndOfRelativeExpression(String expression, int fromIndex) static StringfindLastPropertyName(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(FacesContext context, String expression) -
checkIfExpressionIsRelativeExpression
-
findBeginOfRelativeExpression
-
findEndOfRelativeExpression
-
buildAbsoluteExpressionFromRelativeExpression
-