org.apache.myfaces.el.convert
Class ValueExpressionToValueBinding

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

public class ValueExpressionToValueBinding
extends ValueBinding
implements StateHolder

Converter for legacy ValueBinding objects. See JSF 1.2 section 5.8.3 ATTENTION: If you make changes to this class, treat javax.faces.component.ValueExpressionToValueBinding accordingly.

Author:
Stan Silvert
See Also:
ValueExpressionToValueBinding

Constructor Summary
ValueExpressionToValueBinding()
           
ValueExpressionToValueBinding(javax.el.ValueExpression valueExpression)
          Creates a new instance of ValueExpressionToValueBinding
 
Method Summary
 boolean equals(Object obj)
           
 String getExpressionString()
           
 Class getType(FacesContext facesContext)
           
 Object getValue(FacesContext facesContext)
           
 javax.el.ValueExpression getValueExpression()
           
 int hashCode()
           
 boolean isReadOnly(FacesContext facesContext)
           
 boolean isTransient()
           
 void restoreState(FacesContext facesContext, Object state)
           
 Object saveState(FacesContext context)
           
 void setTransient(boolean newTransientValue)
           
 void setValue(FacesContext facesContext, Object value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueExpressionToValueBinding

public ValueExpressionToValueBinding()

ValueExpressionToValueBinding

public ValueExpressionToValueBinding(javax.el.ValueExpression valueExpression)
Creates a new instance of ValueExpressionToValueBinding

Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getValueExpression

public javax.el.ValueExpression getValueExpression()
Returns:
the valueExpression

getExpressionString

public String getExpressionString()
Overrides:
getExpressionString in class ValueBinding

setValue

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

isReadOnly

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

getValue

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

getType

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

restoreState

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

saveState

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

setTransient

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

isTransient

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


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