org.apache.myfaces.el.convert
Class ValueBindingToValueExpression

java.lang.Object
  extended by javax.el.Expression
      extended by javax.el.ValueExpression
          extended by org.apache.myfaces.el.convert.ValueBindingToValueExpression
All Implemented Interfaces:
Serializable, StateHolder

public class ValueBindingToValueExpression
extends javax.el.ValueExpression
implements StateHolder

Wraps a ValueBinding inside a ValueExpression. Also allows access to the original ValueBinding object. Although ValueExpression implements Serializable, this class implements StateHolder instead. ATTENTION: If you make changes to this class, treat ValueBindingToValueExpression accordingly.

Author:
Stan Silvert
See Also:
_ValueBindingToValueExpression, Serialized Form

Constructor Summary
ValueBindingToValueExpression()
          No-arg constructor used during restoreState
ValueBindingToValueExpression(ValueBinding valueBinding)
          Creates a new instance of ValueBindingToValueExpression
 
Method Summary
 boolean equals(Object obj)
           
 Class<?> getExpectedType()
           
 String getExpressionString()
           
 Class<?> getType(javax.el.ELContext context)
           
 Object getValue(javax.el.ELContext context)
           
 ValueBinding getValueBinding()
           
 int hashCode()
           
 boolean isLiteralText()
           
 boolean isReadOnly(javax.el.ELContext context)
           
 boolean isTransient()
           
 void restoreState(FacesContext context, Object state)
           
 Object saveState(FacesContext context)
           
 void setTransient(boolean newTransientValue)
           
 void setValue(javax.el.ELContext context, Object value)
           
 
Methods inherited from class javax.el.ValueExpression
getValueReference
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueBindingToValueExpression

public ValueBindingToValueExpression()
No-arg constructor used during restoreState


ValueBindingToValueExpression

public ValueBindingToValueExpression(ValueBinding valueBinding)
Creates a new instance of ValueBindingToValueExpression

Method Detail

getValueBinding

public ValueBinding getValueBinding()

isReadOnly

public boolean isReadOnly(javax.el.ELContext context)
                   throws NullPointerException,
                          javax.el.PropertyNotFoundException,
                          javax.el.ELException
Specified by:
isReadOnly in class javax.el.ValueExpression
Throws:
NullPointerException
javax.el.PropertyNotFoundException
javax.el.ELException

getValue

public Object getValue(javax.el.ELContext context)
                throws NullPointerException,
                       javax.el.PropertyNotFoundException,
                       javax.el.ELException
Specified by:
getValue in class javax.el.ValueExpression
Throws:
NullPointerException
javax.el.PropertyNotFoundException
javax.el.ELException

getType

public Class<?> getType(javax.el.ELContext context)
                 throws NullPointerException,
                        javax.el.PropertyNotFoundException,
                        javax.el.ELException
Specified by:
getType in class javax.el.ValueExpression
Throws:
NullPointerException
javax.el.PropertyNotFoundException
javax.el.ELException

setValue

public void setValue(javax.el.ELContext context,
                     Object value)
              throws NullPointerException,
                     javax.el.PropertyNotFoundException,
                     javax.el.PropertyNotWritableException,
                     javax.el.ELException
Specified by:
setValue in class javax.el.ValueExpression
Throws:
NullPointerException
javax.el.PropertyNotFoundException
javax.el.PropertyNotWritableException
javax.el.ELException

hashCode

public int hashCode()
Specified by:
hashCode in class javax.el.Expression

equals

public boolean equals(Object obj)
Specified by:
equals in class javax.el.Expression

isLiteralText

public boolean isLiteralText()
Specified by:
isLiteralText in class javax.el.Expression

getExpressionString

public String getExpressionString()
Specified by:
getExpressionString in class javax.el.Expression

getExpectedType

public Class<?> getExpectedType()
Specified by:
getExpectedType in class javax.el.ValueExpression

restoreState

public void restoreState(FacesContext context,
                         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 © 2014 The Apache Software Foundation. All Rights Reserved.