public final class ObjectValueExpression extends ValueExpression
| Constructor and Description |
|---|
ObjectValueExpression(TypeConverter converter,
Object object,
Class<?> type)
Wrap an object into a value expression.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Two object value expressions are equal if and only if their wrapped objects are equal.
|
Class<?> |
getExpectedType() |
String |
getExpressionString()
Answer
null. |
Class<?> |
getType(ELContext context)
Answer
null. |
Object |
getValue(ELContext context)
Answer the wrapped object, coerced to the expected type.
|
int |
hashCode() |
boolean |
isLiteralText()
Answer
false. |
boolean |
isReadOnly(ELContext context)
Answer
true. |
void |
setValue(ELContext context,
Object value)
Throw an exception.
|
String |
toString() |
getValueReferencepublic ObjectValueExpression(TypeConverter converter, Object object, Class<?> type)
converter - type converterobject - the object to wraptype - the expected type this object will be coerced in getValue(ELContext).public boolean equals(Object obj)
equals in class Expressionpublic int hashCode()
hashCode in class Expressionpublic Object getValue(ELContext context)
getValue in class ValueExpressionpublic String getExpressionString()
null.getExpressionString in class Expressionpublic boolean isLiteralText()
false.isLiteralText in class Expressionpublic Class<?> getType(ELContext context)
null.getType in class ValueExpressionpublic boolean isReadOnly(ELContext context)
true.isReadOnly in class ValueExpressionpublic void setValue(ELContext context, Object value)
setValue in class ValueExpressionpublic Class<?> getExpectedType()
getExpectedType in class ValueExpressionCopyright © 2006-2013 Odysseus Software GmbH. All Rights Reserved.