Class ObjectValueExpression
java.lang.Object
javax.el.Expression
javax.el.ValueExpression
de.odysseus.el.ObjectValueExpression
- All Implemented Interfaces:
Serializable
public final class ObjectValueExpression
extends javax.el.ValueExpression
Object wrapper expression.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypeConverterprivate final Objectprivate static final longprivate final Class<?> -
Constructor Summary
ConstructorsConstructorDescriptionObjectValueExpression(TypeConverter converter, Object object, Class<?> type) Wrap an object into a value expression. -
Method Summary
Modifier and TypeMethodDescriptionbooleanTwo object value expressions are equal if and only if their wrapped objects are equal.Class<?> Answernull.Class<?> getType(javax.el.ELContext context) Answernull.getValue(javax.el.ELContext context) Answer the wrapped object, coerced to the expected type.inthashCode()booleanAnswerfalse.booleanisReadOnly(javax.el.ELContext context) Answertrue.voidThrow an exception.toString()Methods inherited from class javax.el.ValueExpression
getValueReference
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
converter
-
object
-
type
-
-
Constructor Details
-
ObjectValueExpression
Wrap an object into a value expression.- Parameters:
converter- type converterobject- the object to wraptype- the expected type this object will be coerced ingetValue(ELContext).
-
-
Method Details
-
equals
Two object value expressions are equal if and only if their wrapped objects are equal.- Specified by:
equalsin classjavax.el.Expression
-
hashCode
public int hashCode()- Specified by:
hashCodein classjavax.el.Expression
-
getValue
Answer the wrapped object, coerced to the expected type.- Specified by:
getValuein classjavax.el.ValueExpression
-
getExpressionString
Answernull.- Specified by:
getExpressionStringin classjavax.el.Expression
-
isLiteralText
public boolean isLiteralText()Answerfalse.- Specified by:
isLiteralTextin classjavax.el.Expression
-
getType
Answernull.- Specified by:
getTypein classjavax.el.ValueExpression
-
isReadOnly
public boolean isReadOnly(javax.el.ELContext context) Answertrue.- Specified by:
isReadOnlyin classjavax.el.ValueExpression
-
setValue
Throw an exception.- Specified by:
setValuein classjavax.el.ValueExpression
-
toString
-
getExpectedType
- Specified by:
getExpectedTypein classjavax.el.ValueExpression
-