Package org.omnifaces.el
Class ValueExpressionWrapper
- java.lang.Object
-
- jakarta.el.Expression
-
- jakarta.el.ValueExpression
-
- org.omnifaces.el.ValueExpressionWrapper
-
- All Implemented Interfaces:
FacesWrapper<ValueExpression>
,Serializable
- Direct Known Subclasses:
CachingValueExpression
public class ValueExpressionWrapper extends ValueExpression implements FacesWrapper<ValueExpression>
Provides a simple implementation of
ValueExpression
that can be sub-classed by developers wishing to provide specialized behavior to an existingValueExpression
instance. The default implementation of all methods is to call through to the wrappedValueExpression
.Usage: extend this class and provide the instance we are wrapping to the overloaded constructor.
- Author:
- Arjan Tijms
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ValueExpressionWrapper(ValueExpression wrapped)
Construct the value expression wrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Class<?>
getExpectedType()
String
getExpressionString()
Class<?>
getType(ELContext context)
Object
getValue(ELContext context)
ValueReference
getValueReference(ELContext context)
ValueExpression
getWrapped()
int
hashCode()
boolean
isLiteralText()
boolean
isReadOnly(ELContext context)
void
setValue(ELContext context, Object value)
-
-
-
Constructor Detail
-
ValueExpressionWrapper
public ValueExpressionWrapper(ValueExpression wrapped)
Construct the value expression wrapper.- Parameters:
wrapped
- The value expression to be wrapped.
-
-
Method Detail
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in classExpression
-
getExpectedType
public Class<?> getExpectedType()
- Specified by:
getExpectedType
in classValueExpression
-
getExpressionString
public String getExpressionString()
- Specified by:
getExpressionString
in classExpression
-
getType
public Class<?> getType(ELContext context)
- Specified by:
getType
in classValueExpression
-
getValue
public Object getValue(ELContext context)
- Specified by:
getValue
in classValueExpression
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classExpression
-
isLiteralText
public boolean isLiteralText()
- Specified by:
isLiteralText
in classExpression
-
isReadOnly
public boolean isReadOnly(ELContext context)
- Specified by:
isReadOnly
in classValueExpression
-
setValue
public void setValue(ELContext context, Object value)
- Specified by:
setValue
in classValueExpression
-
getValueReference
public ValueReference getValueReference(ELContext context)
- Overrides:
getValueReference
in classValueExpression
-
getWrapped
public ValueExpression getWrapped()
- Specified by:
getWrapped
in interfaceFacesWrapper<ValueExpression>
-
-