org.apache.myfaces.el.convert
Class ValueBindingToValueExpression
java.lang.Object
javax.el.Expression
javax.el.ValueExpression
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
ValueBindingToValueExpression
public ValueBindingToValueExpression()
- No-arg constructor used during restoreState
ValueBindingToValueExpression
public ValueBindingToValueExpression(ValueBinding valueBinding)
- Creates a new instance of ValueBindingToValueExpression
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 © 2010 The Apache Software Foundation. All Rights Reserved.