Class ValueBinding
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Return the (possiblynull
) expression String, including the delimiters, from which thisValueBinding
was built.abstract Class
getType
(FacesContext context) Deprecated.Return the type of the property represented by thisValueBinding
, relative to the specifiedFacesContext
.abstract Object
getValue
(FacesContext context) Deprecated.Return the value of the property represented by thisValueBinding
, relative to the specifiedFacesContext
.abstract boolean
isReadOnly
(FacesContext context) Deprecated.Returntrue
if the specified property of the specified property is known to be immutable; otherwise, returnfalse
.abstract void
setValue
(FacesContext context, Object value) Deprecated.Set the value of the property represented by thisValueBinding
, relative to the specifiedFacesContext
.
-
Constructor Details
-
ValueBinding
public ValueBinding()Deprecated.
-
-
Method Details
-
getValue
public abstract Object getValue(FacesContext context) throws EvaluationException, PropertyNotFoundException Deprecated.Return the value of the property represented by this
ValueBinding
, relative to the specifiedFacesContext
.- Parameters:
context
-FacesContext
for the current request- Returns:
- the value of this expression
- Throws:
EvaluationException
- if an exception is thrown while getting the value (the thrown exception must be included as thecause
property of this exception)NullPointerException
- ifcontext
isnull
PropertyNotFoundException
- if a specified property name does not exist, or is not readable
-
setValue
public abstract void setValue(FacesContext context, Object value) throws EvaluationException, PropertyNotFoundException Deprecated.Set the value of the property represented by this
ValueBinding
, relative to the specifiedFacesContext
.- Parameters:
context
-FacesContext
for the current requestvalue
- The new value to be set- Throws:
EvaluationException
- if an exception is thrown while setting the value (the thrown exception must be included as thecause
property of this exception)NullPointerException
- ifcontext
isnull
PropertyNotFoundException
- if a specified property name does not exist, or is not writeable
-
isReadOnly
public abstract boolean isReadOnly(FacesContext context) throws EvaluationException, PropertyNotFoundException Deprecated.Return
true
if the specified property of the specified property is known to be immutable; otherwise, returnfalse
.- Parameters:
context
-FacesContext
for the current request- Returns:
- whether or not this expression is read only
- Throws:
EvaluationException
- if an exception is thrown while getting the description of the property (the thrown exception must be included as thecause
property of this exception)NullPointerException
- ifcontext
isnull
PropertyNotFoundException
- if a specified property name does not exist
-
getType
public abstract Class getType(FacesContext context) throws EvaluationException, PropertyNotFoundException Deprecated.Return the type of the property represented by this
ValueBinding
, relative to the specifiedFacesContext
.- Parameters:
context
-FacesContext
for the current request- Returns:
- the Java type of this expression
- Throws:
EvaluationException
- if an exception is thrown while getting the description of the property (the thrown exception must be included as thecause
property of this exception)NullPointerException
- ifcontext
isnull
PropertyNotFoundException
- if a specified property name does not exist
-
getExpressionString
Deprecated.Return the (possibly
null
) expression String, including the delimiters, from which thisValueBinding
was built.- Returns:
- the expression string
-
ValueExpression
.