public final class ObjectValueExpression
extends javax.el.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(javax.el.ELContext context)
Answer
null . |
Object |
getValue(javax.el.ELContext context)
Answer the wrapped object, coerced to the expected type.
|
int |
hashCode() |
boolean |
isLiteralText()
Answer
false . |
boolean |
isReadOnly(javax.el.ELContext context)
Answer
true . |
void |
setValue(javax.el.ELContext context,
Object value)
Throw an exception.
|
String |
toString() |
public 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 javax.el.Expression
public int hashCode()
hashCode
in class javax.el.Expression
public Object getValue(javax.el.ELContext context)
getValue
in class javax.el.ValueExpression
public String getExpressionString()
null
.getExpressionString
in class javax.el.Expression
public boolean isLiteralText()
false
.isLiteralText
in class javax.el.Expression
public Class<?> getType(javax.el.ELContext context)
null
.getType
in class javax.el.ValueExpression
public boolean isReadOnly(javax.el.ELContext context)
true
.isReadOnly
in class javax.el.ValueExpression
public void setValue(javax.el.ELContext context, Object value)
setValue
in class javax.el.ValueExpression
public Class<?> getExpectedType()
getExpectedType
in class javax.el.ValueExpression
Copyright © 2006–2017 Odysseus Software GmbH. All rights reserved.