Top Description Constructors Methods
javax.faces.el

public abstract Class ValueBinding

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.faces.application.ValueBindingValueExpressionAdapter, com.sun.faces.facelets.el.LegacyValueBinding
Imports
javax.faces.context.FacesContext

Deprecated

This has been replaced by javax.el.ValueExpression.

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 javax.faces.application.Application instance for this web application.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the expression string
getExpressionString
()

Return the (possibly null) expression String, including the delimiters, from which this ValueBinding was built.

public abstract Class<T>

Returns:

the Java type of this expression
getType
(FacesContext
FacesContext for the current request
context
)

Return the type of the property represented by this ValueBinding, relative to the specified FacesContext.

public abstract Object

Returns:

the value of this expression
getValue
(FacesContext
FacesContext for the current request
context
)

Return the value of the property represented by this ValueBinding, relative to the specified FacesContext.

public abstract boolean

Returns:

whether or not this expression is read only
isReadOnly
(FacesContext
FacesContext for the current request
context
)

Return true if the specified property of the specified property is known to be immutable; otherwise, return false.

public abstract void
setValue(FacesContext
FacesContext for the current request
context
,
Object
The new value to be set
value
)

Set the value of the property represented by this ValueBinding, relative to the specified FacesContext.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ValueBindingback to summary
public ValueBinding()

Method Detail

getExpressionStringback to summary
public String getExpressionString()

Return the (possibly null) expression String, including the delimiters, from which this ValueBinding was built.

Returns:String

the expression string

getTypeback to summary
public abstract Class<T> getType(FacesContext context) throws EvaluationException, PropertyNotFoundException

Return the type of the property represented by this ValueBinding, relative to the specified FacesContext.

Parameters
context:FacesContext

FacesContext for the current request

Returns:Class<T>

the Java type of this expression

Exceptions
EvaluationException:
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)
PropertyNotFoundException:
if a specified property name does not exist
NullPointerException:
if context is null
getValueback to summary
public abstract Object getValue(FacesContext context) throws EvaluationException, PropertyNotFoundException

Return the value of the property represented by this ValueBinding, relative to the specified FacesContext.

Parameters
context:FacesContext

FacesContext for the current request

Returns:Object

the value of this expression

Exceptions
EvaluationException:
if an exception is thrown while getting the value (the thrown exception must be included as the cause property of this exception)
PropertyNotFoundException:
if a specified property name does not exist, or is not readable
NullPointerException:
if context is null
isReadOnlyback to summary
public 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.

Parameters
context:FacesContext

FacesContext for the current request

Returns:boolean

whether or not this expression is read only

Exceptions
EvaluationException:
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)
PropertyNotFoundException:
if a specified property name does not exist
NullPointerException:
if context is null
setValueback to summary
public abstract void setValue(FacesContext context, Object value) throws EvaluationException, PropertyNotFoundException

Set the value of the property represented by this ValueBinding, relative to the specified FacesContext.

Parameters
context:FacesContext

FacesContext for the current request

value:Object

The new value to be set

Exceptions
EvaluationException:
if an exception is thrown while setting the value (the thrown exception must be included as the cause property of this exception)
PropertyNotFoundException:
if a specified property name does not exist, or is not writeable
NullPointerException:
if context is null