public class ExpressionEvaluatorServiceImpl extends Object implements ExpressionEvaluatorService
Modifier and Type | Field and Description |
---|---|
protected static ExpressionParser |
parser |
EMBEDDED_PROPERTY_NAME_ADD_INDICATOR
Constructor and Description |
---|
ExpressionEvaluatorServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
addCustomFunctions(StandardEvaluationContext context)
Registers custom functions for el expressions with the given context
|
boolean |
containsElPlaceholder(String value) |
Object |
evaluateExpression(Object contextObject,
Map<String,Object> evaluationParameters,
String expressionStr) |
Object |
evaluateExpression(StandardEvaluationContext context,
String expressionStr) |
void |
evaluateExpressionsOnConfigurable(View view,
UifDictionaryBean expressionConfigurable,
Object contextObject,
Map<String,Object> evaluationParameters) |
void |
evaluateExpressionsOnConfigurable(View view,
UifDictionaryBean expressionConfigurable,
StandardEvaluationContext context) |
String |
evaluateExpressionTemplate(Object contextObject,
Map<String,Object> evaluationParameters,
String expressionTemplate) |
String |
evaluateExpressionTemplate(StandardEvaluationContext context,
String expressionTemplate) |
protected void |
evaluatePropertyExpressions(View view,
UifDictionaryBean expressionConfigurable,
Object contextObject,
Map<String,Object> evaluationParameters) |
protected void |
evaluatePropertyExpressions(View view,
UifDictionaryBean expressionConfigurable,
StandardEvaluationContext context)
Retrieves the Map from the given object that containing the property expressions that should
be evaluated.
|
protected void |
evaluatePropertyReplacers(View view,
UifDictionaryBean expressionConfigurable,
Object contextObject,
Map<String,Object> evaluationParameters) |
protected void |
evaluatePropertyReplacers(View view,
UifDictionaryBean expressionConfigurable,
StandardEvaluationContext context)
Iterates through any configured
PropertyReplacer instances for the component and
evaluates the given condition. |
StandardEvaluationContext |
getContext(Object contextObject,
Map<String,Object> evaluationParameters) |
protected static String |
getLinePathPrefixValue(Component component)
Determines the value for the
UifConstants.LINE_PATH_BIND_ADJUST_PREFIX binding
prefix
based on collection group found in the component context |
String |
replaceBindingPrefixes(View view,
Object object,
String expression) |
protected static ExpressionParser parser
public ExpressionEvaluatorServiceImpl()
public void evaluateExpressionsOnConfigurable(View view, UifDictionaryBean expressionConfigurable, StandardEvaluationContext context)
org.kuali.rice.krad.uif.service.ExpressionEvaluatorService#evaluateExpressionsOnConfigurable(org.kuali.rice.krad.uif.view.View,
org.kuali.rice.krad.datadictionary.uif.UifDictionaryBean, Object,
java.util.Map)
public void evaluateExpressionsOnConfigurable(View view, UifDictionaryBean expressionConfigurable, Object contextObject, Map<String,Object> evaluationParameters)
evaluateExpressionsOnConfigurable
in interface ExpressionEvaluatorService
public String evaluateExpressionTemplate(Object contextObject, Map<String,Object> evaluationParameters, String expressionTemplate)
evaluateExpressionTemplate
in interface ExpressionEvaluatorService
public String evaluateExpressionTemplate(StandardEvaluationContext context, String expressionTemplate)
public Object evaluateExpression(Object contextObject, Map<String,Object> evaluationParameters, String expressionStr)
evaluateExpression
in interface ExpressionEvaluatorService
public Object evaluateExpression(StandardEvaluationContext context, String expressionStr)
public StandardEvaluationContext getContext(Object contextObject, Map<String,Object> evaluationParameters)
protected void addCustomFunctions(StandardEvaluationContext context)
context
- - context instance to register functions toprotected void evaluatePropertyReplacers(View view, UifDictionaryBean expressionConfigurable, StandardEvaluationContext context)
PropertyReplacer
instances for the component and
evaluates the given condition. If the condition is met, the replacement value is set on the
corresponding propertyview
- - view instance being renderedexpressionConfigurable
- - expressionConfigurable instance with property replacers list, should be either a
component or layout
managercontext
- - context for el evaluationprotected void evaluatePropertyReplacers(View view, UifDictionaryBean expressionConfigurable, Object contextObject, Map<String,Object> evaluationParameters)
protected void evaluatePropertyExpressions(View view, UifDictionaryBean expressionConfigurable, StandardEvaluationContext context)
If the expression is an el template (part static text and part expression), only the expression part will be replaced with the result. More than one expressions may be contained within the template
view
- - view instance that is being renderedexpressionConfigurable
- - object instance to evaluate expressions forcontext
- - object providing the default context for expressionsprotected void evaluatePropertyExpressions(View view, UifDictionaryBean expressionConfigurable, Object contextObject, Map<String,Object> evaluationParameters)
public boolean containsElPlaceholder(String value)
containsElPlaceholder
in interface ExpressionEvaluatorService
ExpressionEvaluatorService.containsElPlaceholder(String)
public String replaceBindingPrefixes(View view, Object object, String expression)
replaceBindingPrefixes
in interface ExpressionEvaluatorService
ExpressionEvaluatorService.replaceBindingPrefixes(org.kuali.rice.krad.uif.view.View,
Object, String)
protected static String getLinePathPrefixValue(Component component)
UifConstants.LINE_PATH_BIND_ADJUST_PREFIX
binding
prefix
based on collection group found in the component contextcomponent
- - component instance for which the prefix is configured onCopyright © 2004-2013 The Kuali Foundation. All Rights Reserved.