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) |
getValueReference
public 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 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.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.