org.apache.myfaces.el

Class ValueBindingImpl

Implemented Interfaces:
StateHolder

public class ValueBindingImpl
extends ValueBinding
implements StateHolder

Version:
$Revision: 278700 $ $Date: 2005-09-05 11:17:46 +0200 (Mon, 05 Sep 2005) $
Authors:
Manfred Geiler (latest modification by $Author: mbr $)
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 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()

Field Details

_application

protected Application _application

_expression

protected Object _expression

_expressionString

protected String _expressionString

s_functionMapper

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

Constructor Details

ValueBindingImpl

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

ValueBindingImpl

public ValueBindingImpl(Application application,
                        String expression)

Method Details

getExpressionString

public String getExpressionString()

getRuntimeConfig

protected RuntimeConfig getRuntimeConfig(FacesContext facesContext)

getType

public Class getType(FacesContext facesContext)

getValue

public Object getValue(FacesContext facesContext)
            throws EvaluationException,
                   PropertyNotFoundException

isReadOnly

public boolean isReadOnly(FacesContext facesContext)

isTransient

public boolean isTransient()

resolveToBaseAndProperty

protected Object resolveToBaseAndProperty(FacesContext facesContext)
            throws ELException,
                   ValueBindingImpl.NotVariableReferenceException

restoreState

public void restoreState(FacesContext facesContext,
                         Object obj)

saveState

public Object saveState(FacesContext facesContext)

setTransient

public void setTransient(boolean flag)

setValue

public void setValue(FacesContext facesContext,
                     Object newValue)
            throws EvaluationException,
                   PropertyNotFoundException

toString

public String toString()