ValueExpression
.public abstract class ValueBinding
extends java.lang.Object
ValueBinding is an object that can be used
to access the property represented by an action or value binding
expression. An immutable ValueBinding
for a particular value binding
can be acquired by calling the createValueBinding()
method of
the Application
instance for this web
application.
Constructor and Description |
---|
ValueBinding()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExpressionString()
Deprecated.
Return the (possibly
null ) expression String,
including the delimiters, from which this
ValueBinding was built. |
abstract java.lang.Class |
getType(FacesContext context)
Deprecated.
Return the type of the property represented by this
ValueBinding , relative to the specified FacesContext . |
abstract java.lang.Object |
getValue(FacesContext context)
Deprecated.
Return the value of the property represented by this
ValueBinding , relative to the specified FacesContext . |
abstract boolean |
isReadOnly(FacesContext context)
Deprecated.
Return
true if the specified property of the specified
property is known to be immutable; otherwise, return
false . |
abstract void |
setValue(FacesContext context,
java.lang.Object value)
Deprecated.
Set the value of the property represented by this
ValueBinding , relative to the specified FacesContext . |
public abstract java.lang.Object getValue(FacesContext context) throws EvaluationException, PropertyNotFoundException
Return the value of the property represented by this
ValueBinding
, relative to the specified FacesContext
.
context
- FacesContext
for the current requestEvaluationException
- if an exception is thrown while getting
the value (the thrown exception must be included as the
cause
property of this exception)java.lang.NullPointerException
- if context
is null
PropertyNotFoundException
- if a specified property name
does not exist, or is not readablepublic abstract void setValue(FacesContext context, java.lang.Object value) throws EvaluationException, PropertyNotFoundException
Set the value of the property represented by this
ValueBinding
, relative to the specified FacesContext
.
context
- FacesContext
for the current requestvalue
- The new value to be setEvaluationException
- if an exception is thrown while setting
the value (the thrown exception must be included as the
cause
property of this exception)java.lang.NullPointerException
- if context
is null
PropertyNotFoundException
- if a specified property name
does not exist, or is not writeablepublic abstract boolean isReadOnly(FacesContext context) throws EvaluationException, PropertyNotFoundException
Return true
if the specified property of the specified
property is known to be immutable; otherwise, return
false
.
context
- FacesContext
for the current requestEvaluationException
- if an exception is thrown while getting
the description of the property (the thrown exception must be
included as the cause
property of this exception)java.lang.NullPointerException
- if context
is null
PropertyNotFoundException
- if a specified property name
does not existpublic abstract java.lang.Class getType(FacesContext context) throws EvaluationException, PropertyNotFoundException
Return the type of the property represented by this
ValueBinding
, relative to the specified FacesContext
.
context
- FacesContext
for the current requestEvaluationException
- if an exception is thrown while getting
the description of the property (the thrown exception must be
included as the cause
property of this exception)java.lang.NullPointerException
- if context
is null
PropertyNotFoundException
- if a specified property name
does not existpublic java.lang.String getExpressionString()
Return the (possibly null
) expression String,
including the delimiters, from which this
ValueBinding
was built.