|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.el.Expression
javax.el.ValueExpression
org.apache.myfaces.test.el.MockValueExpression
org.apache.myfaces.test.el.MockCompositeValueExpression
public class MockCompositeValueExpression
A value expression implementation that is capable of handling composite expressions. It handles composites expressions but creating a list of 'simple' expressions which are 'pure', only literal text or only references like #{}
| Constructor Summary | |
|---|---|
MockCompositeValueExpression(String expression,
Class expectedType)
|
|
| Method Summary | |
|---|---|
String |
getExpressionString()
Return the original String used to create this expression, unmodified. |
static int |
getStartPositionOfReference(StringBuilder expressionPart)
|
Class |
getType(javax.el.ELContext context)
Evaluate this expression relative to the specified context, and return the most general type that is acceptable for the value passed in a setValue() call. |
Object |
getValue(javax.el.ELContext context)
Evaluate this expression relative to the specified context, and return the result. |
boolean |
isReadOnly(javax.el.ELContext context)
Evaluate this expression relative to the specified context, and return true if a call to setValue()
will always fail. |
void |
setValue(javax.el.ELContext context,
Object value)
Evaluate this expression relative to the specified context, and set the result to the specified value. |
| Methods inherited from class org.apache.myfaces.test.el.MockValueExpression |
|---|
equals, getExpectedType, hashCode, isLiteralText |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockCompositeValueExpression(String expression,
Class expectedType)
| Method Detail |
|---|
public Class getType(javax.el.ELContext context)
MockValueExpressionEvaluate this expression relative to the specified context,
and return the most general type that is acceptable for the
value passed in a setValue() call.
getType in class MockValueExpressioncontext - ELContext for this evaluationpublic Object getValue(javax.el.ELContext context)
MockValueExpressionEvaluate this expression relative to the specified context, and return the result.
getValue in class MockValueExpressioncontext - ELContext for this evaluation
public void setValue(javax.el.ELContext context,
Object value)
MockValueExpressionEvaluate this expression relative to the specified context, and set the result to the specified value.
setValue in class MockValueExpressioncontext - ELContext for this evaluationvalue - Value to which the result should be setpublic String getExpressionString()
MockValueExpressionReturn the original String used to create this expression, unmodified.
getExpressionString in class MockValueExpressionpublic boolean isReadOnly(javax.el.ELContext context)
MockValueExpressionEvaluate this expression relative to the specified context,
and return true if a call to setValue()
will always fail.
isReadOnly in class MockValueExpressioncontext - ELContext for this evaluationpublic static int getStartPositionOfReference(StringBuilder expressionPart)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||