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.ReturningWithArgument<Object,ELContext> callbackWithArgument) |
ReadOnlyValueExpression(Class<?> expectedType,
Callback.SerializableReturning<Object> callbackReturning) |
| 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
|
Callback.ReturningWithArgument<Object,ELContext> |
getCallbackWithArgument()
Returns the functional interface that will be called when the value expression is resolved
and which receives the proper ELContext.
|
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 |
setCallbackWithArgument(Callback.ReturningWithArgument<Object,ELContext> callbackWithArgument)
Sets the functional interface that will be called when the value expression is resolved and
which receives the proper ELContext.
|
void |
setValue(ELContext context,
Object value) |
getValueReferencepublic ReadOnlyValueExpression(Class<?> expectedType, Callback.SerializableReturning<Object> callbackReturning)
public ReadOnlyValueExpression(Class<?> expectedType, Callback.ReturningWithArgument<Object,ELContext> callbackWithArgument)
public ReadOnlyValueExpression(Class<?> expectedType)
public ReadOnlyValueExpression()
public Object getValue(ELContext context)
getValue in class ValueExpressionpublic void setValue(ELContext context, Object value)
setValue in class ValueExpressionpublic boolean isReadOnly(ELContext context)
isReadOnly in class ValueExpressionpublic Class<?> getType(ELContext context)
getType in class ValueExpressionpublic Class<?> getExpectedType()
getExpectedType in class ValueExpressionpublic String getExpressionString()
getExpressionString in class Expressionpublic boolean equals(Object object)
equals in class Expressionpublic int hashCode()
hashCode in class Expressionpublic boolean isLiteralText()
isLiteralText in class Expressionpublic Callback.ReturningWithArgument<Object,ELContext> getCallbackWithArgument()
public void setCallbackWithArgument(Callback.ReturningWithArgument<Object,ELContext> callbackWithArgument)
callbackWithArgument - functional interface returning what the value expression will returnpublic Callback.SerializableReturning<Object> getCallbackReturning()
public void setCallbackReturning(Callback.SerializableReturning<Object> callbackReturning)
callbackReturning - functional interface returning what the value expression will returnCopyright © 2012–2015 OmniFaces. All rights reserved.