public class ReadOnlyValueExpression extends ValueExpression
A callback (lambda in Java 8) that obtains the value can be provided, or the getValue() method can be overridden.
Constructor and Description |
---|
ReadOnlyValueExpression() |
ReadOnlyValueExpression(Class<?> expectedType) |
ReadOnlyValueExpression(Class<?> expectedType,
Callback.SerializableReturning<Object> callback) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
Callback.SerializableReturning<Object> |
getCallbackReturning()
Returns the functional interface that will be called when the value expression is resolved
|
Class<?> |
getExpectedType() |
String |
getExpressionString() |
Class<?> |
getType(ELContext context) |
Object |
getValue(ELContext context) |
int |
hashCode() |
boolean |
isLiteralText() |
boolean |
isReadOnly(ELContext context) |
void |
setCallbackReturning(Callback.SerializableReturning<Object> callbackReturning)
Sets the functional interface that will be called when the value expression is resolved
|
void |
setValue(ELContext context,
Object value) |
getValueReference
public ReadOnlyValueExpression(Class<?> expectedType, Callback.SerializableReturning<Object> callback)
public ReadOnlyValueExpression(Class<?> expectedType)
public ReadOnlyValueExpression()
public Object getValue(ELContext context)
getValue
in class ValueExpression
public void setValue(ELContext context, Object value)
setValue
in class ValueExpression
public boolean isReadOnly(ELContext context)
isReadOnly
in class ValueExpression
public Class<?> getType(ELContext context)
getType
in class ValueExpression
public Class<?> getExpectedType()
getExpectedType
in class ValueExpression
public String getExpressionString()
getExpressionString
in class Expression
public boolean equals(Object object)
equals
in class Expression
public int hashCode()
hashCode
in class Expression
public boolean isLiteralText()
isLiteralText
in class Expression
public Callback.SerializableReturning<Object> getCallbackReturning()
public void setCallbackReturning(Callback.SerializableReturning<Object> callbackReturning)
callbackReturning
- functional interface returning what the value expression will returnCopyright © 2012–2020 OmniFaces. All rights reserved.