Package org.forgerock.openig.el
Class Expressions
- java.lang.Object
-
- org.forgerock.openig.el.Expressions
-
public final class Expressions extends Object
Utility class for evaluating expression in some collections.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Objectevaluate(Object value, Bindings bindings)Evaluate an Object that may contain some String that needs to be evaluated.static Objectevaluate(String value, Bindings bindings)Evaluate a String.static List<Object>evaluate(List<Object> list, Bindings bindings)Evaluate a list that may contain some String that needs to be evaluated.static Map<String,Object>evaluate(Map<String,Object> map, Bindings bindings)Evaluate a map that may contain some values that needs to be evaluated.
-
-
-
Method Detail
-
evaluate
public static Map<String,Object> evaluate(Map<String,Object> map, Bindings bindings) throws ExpressionException
Evaluate a map that may contain some values that needs to be evaluated.- Parameters:
map- the map to evaluatebindings- the bindings used for the evaluation- Returns:
- a new Map containing the result of the evaluation.
- Throws:
ExpressionException- if an error occurs while evaluating the expression
-
evaluate
public static List<Object> evaluate(List<Object> list, Bindings bindings) throws ExpressionException
Evaluate a list that may contain some String that needs to be evaluated.- Parameters:
list- the list to evaluatebindings- the bindings used for the evaluation- Returns:
- a new list containing the results of the evaluations
- Throws:
ExpressionException- if an error occurs while evaluating the expression
-
evaluate
public static Object evaluate(String value, Bindings bindings) throws ExpressionException
Evaluate a String.- Parameters:
value- the String to evaluatebindings- the bindings used for the evaluation- Returns:
- the result of the evaluation.
- Throws:
ExpressionException- if an error occurs while evaluating the expression
-
evaluate
public static Object evaluate(Object value, Bindings bindings) throws ExpressionException
Evaluate an Object that may contain some String that needs to be evaluated. The supported types of Object are : String, List and Map.- Parameters:
value- the String to evaluatebindings- the bindings used for the evaluation- Returns:
- the result of the evaluation.
- Throws:
ExpressionException- if an error occurs while evaluating the expression
-
-