java.lang.Object
javax.faces.el.ValueBinding
org.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) $
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
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.
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