javax.faces.el
Class ValueBinding

java.lang.Object
  |
  +--javax.faces.el.ValueBinding

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 Summary
ValueBinding()
           
 
Method Summary
 java.lang.String getExpressionString()
          Return the (possibly null) expression String, including the delimiters, from which this ValueBinding was built.
abstract  java.lang.Class getType(javax.faces.context.FacesContext context)
          Return the type of the property represented by this ValueBinding, relative to the specified FacesContext.
abstract  java.lang.Object getValue(javax.faces.context.FacesContext context)
          Return the value of the property represented by this ValueBinding, relative to the specified FacesContext.
abstract  boolean isReadOnly(javax.faces.context.FacesContext context)
          Return true if the specified property of the specified property is known to be immutable; otherwise, return false.
abstract  void setValue(javax.faces.context.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(javax.faces.context.FacesContext context)
                                   throws EvaluationException,
                                          PropertyNotFoundException

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

Parameters:
context - FacesContext for the current request
Throws:
EvaluationException - 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 readable

setValue

public abstract void setValue(javax.faces.context.FacesContext context,
                              java.lang.Object value)
                       throws EvaluationException,
                              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:
EvaluationException - 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 writeable

isReadOnly

public abstract boolean isReadOnly(javax.faces.context.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 for the current request
Throws:
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)
java.lang.NullPointerException - if context is null
PropertyNotFoundException - if a specified property name does not exist

getType

public abstract java.lang.Class getType(javax.faces.context.FacesContext context)
                                 throws EvaluationException,
                                        PropertyNotFoundException

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

Parameters:
context - FacesContext for the current request
Throws:
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)
java.lang.NullPointerException - if context is null
PropertyNotFoundException - if a specified property name does not exist

getExpressionString

public java.lang.String getExpressionString()

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



Copyright ? 2002-2004 Sun Microsystems, Inc. All Rights Reserved.