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.Returning<Object> callbackReturning) |
ReadOnlyValueExpression(Class<?> expectedType,
Callback.ReturningWithArgument<Object,ELContext> callbackWithArgument) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
boolean |
equals(ReadOnlyValueExpression other) |
Class<?> |
getExpectedType() |
String |
getExpressionString() |
Class<?> |
getType(ELContext context) |
Object |
getValue(ELContext context) |
int |
hashCode() |
boolean |
isLiteralText() |
boolean |
isReadOnly(ELContext context) |
void |
setValue(ELContext context,
Object value) |
getValueReference
public ReadOnlyValueExpression(Class<?> expectedType, Callback.Returning<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 obj)
equals
in class Expression
public boolean equals(ReadOnlyValueExpression other)
public int hashCode()
hashCode
in class Expression
public boolean isLiteralText()
isLiteralText
in class Expression
Copyright © 2012–2014 OmniFaces. All rights reserved.