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:
java.io.Serializable, javax.faces.component.StateHolder

public class ValueBindingToValueExpression
extends javax.el.ValueExpression
implements javax.faces.component.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(javax.faces.el.ValueBinding valueBinding)
          Creates a new instance of ValueBindingToValueExpression
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Class<?> getExpectedType()
           
 java.lang.String getExpressionString()
           
 java.lang.Class<?> getType(javax.el.ELContext context)
           
 java.lang.Object getValue(javax.el.ELContext context)
           
 javax.faces.el.ValueBinding getValueBinding()
           
 int hashCode()
           
 boolean isLiteralText()
           
 boolean isReadOnly(javax.el.ELContext context)
           
 boolean isTransient()
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setTransient(boolean newTransientValue)
           
 void setValue(javax.el.ELContext context, java.lang.Object value)
           
 
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(javax.faces.el.ValueBinding valueBinding)
Creates a new instance of ValueBindingToValueExpression

Method Detail

getValueBinding

public javax.faces.el.ValueBinding getValueBinding()

isReadOnly

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

getValue

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

getType

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

setValue

public void setValue(javax.el.ELContext context,
                     java.lang.Object value)
              throws java.lang.NullPointerException,
                     javax.el.PropertyNotFoundException,
                     javax.el.PropertyNotWritableException,
                     javax.el.ELException
Specified by:
setValue in class javax.el.ValueExpression
Throws:
java.lang.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(java.lang.Object obj)
Specified by:
equals in class javax.el.Expression

isLiteralText

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

getExpressionString

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

getExpectedType

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

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder

setTransient

public void setTransient(boolean newTransientValue)
Specified by:
setTransient in interface javax.faces.component.StateHolder

isTransient

public boolean isTransient()
Specified by:
isTransient in interface javax.faces.component.StateHolder


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