- 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
ValueExpressionthat can be sub-classed by developers wishing to provide specialized behavior to an existingValueExpressioninstance. 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 booleanequals(Object obj)Class<?>getExpectedType()StringgetExpressionString()Class<?>getType(ELContext context)ObjectgetValue(ELContext context)ValueReferencegetValueReference(ELContext context)ValueExpressiongetWrapped()inthashCode()booleanisLiteralText()booleanisReadOnly(ELContext context)voidsetValue(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:
equalsin classExpression
-
getExpectedType
public Class<?> getExpectedType()
- Specified by:
getExpectedTypein classValueExpression
-
getExpressionString
public String getExpressionString()
- Specified by:
getExpressionStringin classExpression
-
getType
public Class<?> getType(ELContext context)
- Specified by:
getTypein classValueExpression
-
getValue
public Object getValue(ELContext context)
- Specified by:
getValuein classValueExpression
-
hashCode
public int hashCode()
- Specified by:
hashCodein classExpression
-
isLiteralText
public boolean isLiteralText()
- Specified by:
isLiteralTextin classExpression
-
isReadOnly
public boolean isReadOnly(ELContext context)
- Specified by:
isReadOnlyin classValueExpression
-
setValue
public void setValue(ELContext context, Object value)
- Specified by:
setValuein classValueExpression
-
getValueReference
public ValueReference getValueReference(ELContext context)
- Overrides:
getValueReferencein classValueExpression
-
getWrapped
public ValueExpression getWrapped()
- Specified by:
getWrappedin interfaceFacesWrapper<ValueExpression>
-
-