|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.el.Expression
javax.el.ValueExpression
de.odysseus.el.ObjectValueExpression
public final class ObjectValueExpression
Object wrapper expression.
| Constructor Summary | |
|---|---|
ObjectValueExpression(java.lang.Object object,
java.lang.Class<?> type)
Wrap an object into a value expression. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Two object value expressions are equal if and only if their wrapped objects are equal. |
java.lang.Class<?> |
getExpectedType()
Returns the type the result of the expression will be coerced to after evaluation. |
java.lang.String |
getExpressionString()
Answer null. |
java.lang.Class<?> |
getType(ELContext context)
Answer null. |
java.lang.Object |
getValue(ELContext context)
Answer the wrapped object, coerced to the expected type. |
int |
hashCode()
Returns the hash code for this Expression. |
boolean |
isLiteralText()
Answer false. |
boolean |
isReadOnly(ELContext context)
Answer true. |
void |
setValue(ELContext context,
java.lang.Object value)
Throw an exception. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectValueExpression(java.lang.Object object,
java.lang.Class<?> type)
object - the object to wraptype - the expected type this object will be coerced in getValue(ELContext).| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class Expressionobj - the Object to test for equality.
true if obj equals this
Expression; false otherwise.Hashtable,
Object.equals(java.lang.Object)public int hashCode()
ExpressionExpression.
See the note in the Expression.equals(java.lang.Object) method on how two expressions
can be equal if their expression Strings are different. Recall that
if two objects are equal according to the equals(Object)
method, then calling the hashCode method on each of the
two objects must produce the same integer result. Implementations must
take special note and implement hashCode correctly.
hashCode in class ExpressionExpression.Expression.equals(java.lang.Object),
Hashtable,
Object.hashCode()public java.lang.Object getValue(ELContext context)
getValue in class ValueExpressioncontext - The context of this evaluation.
public java.lang.String getExpressionString()
null.
getExpressionString in class Expressionpublic boolean isLiteralText()
false.
isLiteralText in class Expressiontrue if this expression was created from only
literal text; false otherwise.public java.lang.Class<?> getType(ELContext context)
null.
getType in class ValueExpressioncontext - The context of this evaluation.
public boolean isReadOnly(ELContext context)
true.
isReadOnly in class ValueExpressioncontext - The context of this evaluation.
true if the expression is read-only or
false if not.
public void setValue(ELContext context,
java.lang.Object value)
setValue in class ValueExpressioncontext - The context of this evaluation.value - The new value to be set.public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Class<?> getExpectedType()
ValueExpression
getExpectedType in class ValueExpressionexpectedType passed to the
ExpressionFactory.createValueExpression method
that created this ValueExpression.
|
Copyright © 2006, 2007 Odysseus Software GmbH. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||