org.apache.myfaces.el
Class ValueBindingImpl

java.lang.Object
  extended by javax.faces.el.ValueBinding
      extended by org.apache.myfaces.el.ValueBindingImpl
All Implemented Interfaces:
StateHolder

public class ValueBindingImpl
extends ValueBinding
implements StateHolder

Version:
$Revision: 472618 $ $Date: 2006-11-08 15:06:54 -0500 (Wed, 08 Nov 2006) $
Author:
Manfred Geiler (latest modification by $Author: grantsmith $), Anton Koinov

Nested Class Summary
static class ValueBindingImpl.ELVariableResolver
           
static class ValueBindingImpl.NotVariableReferenceException
           
 
Field Summary
protected  Application _application
           
protected  Object _expression
           
protected  String _expressionString
           
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(Application application, String expression)
           
 
Method Summary
 String getExpressionString()
           
protected  RuntimeConfig getRuntimeConfig(FacesContext facesContext)
           
 Class getType(FacesContext facesContext)
           
 Object getValue(FacesContext facesContext)
           
 boolean isReadOnly(FacesContext facesContext)
           
 boolean isTransient()
           
protected  Object resolveToBaseAndProperty(FacesContext facesContext)
           
 void restoreState(FacesContext facesContext, Object obj)
           
 Object saveState(FacesContext facesContext)
           
 void setTransient(boolean flag)
           
 void setValue(FacesContext facesContext, Object newValue)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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


_application

protected Application _application

_expressionString

protected String _expressionString

_expression

protected Object _expression
Constructor Detail

ValueBindingImpl

public ValueBindingImpl(Application application,
                        String expression)

ValueBindingImpl

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

Method Detail

getExpressionString

public String getExpressionString()
Overrides:
getExpressionString in class ValueBinding

isReadOnly

public boolean isReadOnly(FacesContext facesContext)
Specified by:
isReadOnly in class ValueBinding

getType

public Class getType(FacesContext facesContext)
Specified by:
getType in class ValueBinding

setValue

public void setValue(FacesContext facesContext,
                     Object newValue)
              throws EvaluationException,
                     PropertyNotFoundException
Specified by:
setValue in class ValueBinding
Throws:
EvaluationException
PropertyNotFoundException

getValue

public Object getValue(FacesContext facesContext)
                throws EvaluationException,
                       PropertyNotFoundException
Specified by:
getValue in class ValueBinding
Throws:
EvaluationException
PropertyNotFoundException

resolveToBaseAndProperty

protected Object resolveToBaseAndProperty(FacesContext facesContext)
                                   throws javax.servlet.jsp.el.ELException,
                                          ValueBindingImpl.NotVariableReferenceException
Throws:
javax.servlet.jsp.el.ELException
ValueBindingImpl.NotVariableReferenceException

getRuntimeConfig

protected RuntimeConfig getRuntimeConfig(FacesContext facesContext)

toString

public String toString()
Overrides:
toString in class Object

saveState

public Object saveState(FacesContext facesContext)
Specified by:
saveState in interface StateHolder

restoreState

public void restoreState(FacesContext facesContext,
                         Object obj)
Specified by:
restoreState in interface StateHolder

isTransient

public boolean isTransient()
Specified by:
isTransient in interface StateHolder

setTransient

public void setTransient(boolean flag)
Specified by:
setTransient in interface StateHolder


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.