Class SimpleExpressionUtil
- java.lang.Object
-
- com.evolveum.midpoint.schema.util.SimpleExpressionUtil
-
@Experimental public class SimpleExpressionUtil extends Object
Very simple expression utils. More advanced ones are to be found in upper layers. EXPERIMENTAL. Later will be reconsidered.
-
-
Constructor Summary
Constructors Constructor Description SimpleExpressionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object
getConstantIfPresent(ExpressionType expression)
static ExpressionType
groovyExpression(String groovyCode)
CreatesExpressionType
with specified Groovy code.static ExpressionType
literalExpression(Object literalValue)
static ExpressionType
scriptExpression(String languageUrl, String code)
CreatesExpressionType
with script for specific language and with specified code.static ExpressionType
velocityExpression(String velocityTemplate)
CreatesExpressionType
for specified Velocity template.
-
-
-
Method Detail
-
getConstantIfPresent
public static Object getConstantIfPresent(ExpressionType expression)
-
velocityExpression
public static ExpressionType velocityExpression(String velocityTemplate)
CreatesExpressionType
for specified Velocity template.
-
groovyExpression
public static ExpressionType groovyExpression(String groovyCode)
CreatesExpressionType
with specified Groovy code.
-
scriptExpression
public static ExpressionType scriptExpression(String languageUrl, String code)
CreatesExpressionType
with script for specific language and with specified code.
-
literalExpression
public static ExpressionType literalExpression(Object literalValue)
-
-