javax.faces.el
Class ValueBinding

java.lang.Object
  extended byjavax.faces.el.ValueBinding

public abstract class ValueBinding
extends java.lang.Object

ValueBinding represents an object that can be used to access the property represented by an action or value reference expression. An immutable ValueBinding for a particular reference can be acquired by calling the getValueBinding() method of the Application instance for this web application. Implementations of ValueBinding are suitable for caching the bindings for frequently accessed expressions, without requiring per-request reparsing.


Constructor Summary
ValueBinding()
           
 
Method Summary
abstract  java.lang.Class getType(FacesContext context)
          Return the type of the property represented by this ValueBinding, relative to the specified FacesContext.
abstract  java.lang.Object getValue(FacesContext context)
          Return the value of the property represented by this ValueBinding, relative to the specified FacesContext.
abstract  boolean isReadOnly(FacesContext context)
          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)
          Set the value of the property represented by this ValueBinding, relative to the specified FacesContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueBinding

public ValueBinding()
Method Detail

getValue

public abstract java.lang.Object getValue(FacesContext context)
                                   throws PropertyNotFoundException

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

Parameters:
context - FacesContext for the current request
Throws:
java.lang.NullPointerException - if context is null
PropertyNotFoundException - if the specified property name does not exist, or is not readable

setValue

public abstract void setValue(FacesContext context,
                              java.lang.Object value)
                       throws PropertyNotFoundException

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

Parameters:
context - FacesContext for the current request
value - The new value to be set
Throws:
java.lang.NullPointerException - if context is null
PropertyNotFoundException - if the specified property name does not exist, or is not writeable

isReadOnly

public abstract boolean isReadOnly(FacesContext context)
                            throws PropertyNotFoundException

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

Parameters:
context - FacesContext for the current request
Throws:
java.lang.NullPointerException - if context is null
PropertyNotFoundException - if the specified property name does not exist

getType

public abstract java.lang.Class getType(FacesContext context)
                                 throws PropertyNotFoundException

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

Parameters:
context - FacesContext for the current request
Throws:
java.lang.NullPointerException - if context is null
PropertyNotFoundException - if the specified property name does not exist, or is not writeable