Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.myfaces.el
Class ValueBindingImpl  view ValueBindingImpl download ValueBindingImpl.java

java.lang.Object
  extended byjavax.faces.el.ValueBinding
      extended byorg.apache.myfaces.el.ValueBindingImpl
All Implemented Interfaces:
javax.faces.component.StateHolder

public class ValueBindingImpl
extends javax.faces.el.ValueBinding
implements javax.faces.component.StateHolder

Version:
$Revision: 293105 $ $Date: 2005-10-02 08:45:03 -0400 (Sun, 02 Oct 2005) $

Nested Class Summary
static class ValueBindingImpl.ELVariableResolver
           
static class ValueBindingImpl.NotVariableReferenceException
           
 
Field Summary
protected  javax.faces.application.Application _application
           
protected  java.lang.Object _expression
           
protected  java.lang.String _expressionString
           
private  org.apache.myfaces.config.RuntimeConfig _runtimeConfig
          RuntimeConfig is instantiated once per servlet and never changes--we can safely cache it
private  boolean _transient
           
(package private) static org.apache.commons.logging.Log log
           
private static org.apache.myfaces.util.BiLevelCacheMap s_expressionCache
           
protected static javax.servlet.jsp.el.FunctionMapper s_functionMapper
          To implement function support, subclass and use a static initialization block to assign your own function mapper
 
Constructor Summary
ValueBindingImpl()
          Empty constructor, so that new instances can be created when restoring state.
ValueBindingImpl(javax.faces.application.Application application, java.lang.String expression)
           
 
Method Summary
private  java.lang.Object coerce(java.lang.Object value, java.lang.Class clazz)
           
 java.lang.String getExpressionString()
           
protected  org.apache.myfaces.config.RuntimeConfig getRuntimeConfig(javax.faces.context.FacesContext facesContext)
           
 java.lang.Class getType(javax.faces.context.FacesContext facesContext)
           
 java.lang.Object getValue(javax.faces.context.FacesContext facesContext)
           
 boolean isReadOnly(javax.faces.context.FacesContext facesContext)
           
 boolean isTransient()
           
protected  java.lang.Object resolveToBaseAndProperty(javax.faces.context.FacesContext facesContext)
           
 void restoreState(javax.faces.context.FacesContext facesContext, java.lang.Object obj)
           
 java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
           
 void setTransient(boolean flag)
           
 void setValue(javax.faces.context.FacesContext facesContext, java.lang.Object newValue)
           
private  void setValueInScope(javax.faces.context.FacesContext facesContext, java.lang.String name, java.lang.Object newValue)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

static final org.apache.commons.logging.Log log

s_functionMapper

protected static javax.servlet.jsp.el.FunctionMapper s_functionMapper
To implement function support, subclass and use a static initialization block to assign your own function mapper


s_expressionCache

private static final org.apache.myfaces.util.BiLevelCacheMap s_expressionCache

_application

protected javax.faces.application.Application _application

_expressionString

protected java.lang.String _expressionString

_expression

protected java.lang.Object _expression

_runtimeConfig

private org.apache.myfaces.config.RuntimeConfig _runtimeConfig
RuntimeConfig is instantiated once per servlet and never changes--we can safely cache it


_transient

private boolean _transient
Constructor Detail

ValueBindingImpl

public ValueBindingImpl(javax.faces.application.Application application,
                        java.lang.String expression)

ValueBindingImpl

public ValueBindingImpl()
Empty constructor, so that new instances can be created when restoring state.

Method Detail

getExpressionString

public java.lang.String getExpressionString()

isReadOnly

public boolean isReadOnly(javax.faces.context.FacesContext facesContext)

getType

public java.lang.Class getType(javax.faces.context.FacesContext facesContext)

setValue

public void setValue(javax.faces.context.FacesContext facesContext,
                     java.lang.Object newValue)
              throws javax.faces.el.EvaluationException,
                     javax.faces.el.PropertyNotFoundException

setValueInScope

private void setValueInScope(javax.faces.context.FacesContext facesContext,
                             java.lang.String name,
                             java.lang.Object newValue)
                      throws javax.servlet.jsp.el.ELException

getValue

public java.lang.Object getValue(javax.faces.context.FacesContext facesContext)
                          throws javax.faces.el.EvaluationException,
                                 javax.faces.el.PropertyNotFoundException

resolveToBaseAndProperty

protected java.lang.Object resolveToBaseAndProperty(javax.faces.context.FacesContext facesContext)
                                             throws javax.servlet.jsp.el.ELException,
                                                    ValueBindingImpl.NotVariableReferenceException

coerce

private java.lang.Object coerce(java.lang.Object value,
                                java.lang.Class clazz)
                         throws javax.servlet.jsp.el.ELException

getRuntimeConfig

protected org.apache.myfaces.config.RuntimeConfig getRuntimeConfig(javax.faces.context.FacesContext facesContext)

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


saveState

public java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
Specified by:
saveState in interface javax.faces.component.StateHolder

restoreState

public void restoreState(javax.faces.context.FacesContext facesContext,
                         java.lang.Object obj)
Specified by:
restoreState in interface javax.faces.component.StateHolder

isTransient

public boolean isTransient()
Specified by:
isTransient in interface javax.faces.component.StateHolder

setTransient

public void setTransient(boolean flag)
Specified by:
setTransient in interface javax.faces.component.StateHolder