public interface BindEvaluatorX extends Evaluator
Evaluator
to have more control to handle Binding via EL.
With BindEvaluatorX
, you are allow to parse a Method expression or set value into property
resolved by the provided expression.
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getType(BindContext ctx,
Component comp,
ExpressionX expression)
Returns the result type of the specified expression.
|
java.lang.Object |
getValue(BindContext ctx,
Component comp,
ExpressionX expression)
Sets the specified value to the property resolved from the specified expression.
|
ValueReference |
getValueReference(BindContext ctx,
Component comp,
ExpressionX expression)
Returns the result reference of the specified expression.
|
boolean |
isReadOnly(BindContext ctx,
Component comp,
ExpressionX expression)
Returns whether the specified expression a read only expression.
|
ExpressionX |
parseExpressionX(BindContext ctx,
java.lang.String expression,
java.lang.Class<?> expectedType)
Prepares the expressionX.
|
void |
setValue(BindContext ctx,
Component comp,
ExpressionX expression,
java.lang.Object value)
Sets the specified value to the property resolved from the specified expression.
|
evaluate, evaluate, parseExpression
ExpressionX parseExpressionX(BindContext ctx, java.lang.String expression, java.lang.Class<?> expectedType) throws XelException
expression
- the expression to be prepared for being evaluated
later.expectedType
- the expected type of the result of the evaluationXelException
void setValue(BindContext ctx, Component comp, ExpressionX expression, java.lang.Object value) throws XelException
ctx
- the scoped bind context of this operationcomp
- the scoped component context of this operationexpression
- the expression that will resolve a propertyvalue
- the value to be set into the resolved propertyXelException
java.lang.Object getValue(BindContext ctx, Component comp, ExpressionX expression) throws XelException
ctx
- the scoped bind context of this operationcomp
- the scoped component context of this operationexpression
- the expression that will resolve a propertyXelException
java.lang.Class<?> getType(BindContext ctx, Component comp, ExpressionX expression) throws XelException
ctx
- BindContextcomp
- evaluation contextexpression
- the expression that will resolve a propertyXelException
ValueReference getValueReference(BindContext ctx, Component comp, ExpressionX expression) throws XelException
ctx
- BindContextcomp
- evaluation contextexpression
- the expression that will resolve a propertyXelException
boolean isReadOnly(BindContext ctx, Component comp, ExpressionX expression) throws XelException
ctx
- BindContextcomp
- evaluation contextexpression
- the expression that will resolve a propertyXelException
Copyright © 2005-2018 Potix Corporation. All Rights Reserved.