|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.el.ValueBinding
org.apache.shale.test.mock.MockValueBinding
public class MockValueBinding
Mock implementation of ValueBinding
.
Constructor Summary | |
---|---|
MockValueBinding()
Construct a default instance. |
|
MockValueBinding(javax.faces.application.Application application,
java.lang.String ref)
Construct a new value binding for the specified expression. |
Method Summary | |
---|---|
java.lang.String |
getExpressionString()
|
java.lang.Class |
getType(javax.faces.context.FacesContext context)
|
java.lang.Object |
getValue(javax.faces.context.FacesContext context)
|
boolean |
isReadOnly(javax.faces.context.FacesContext context)
|
boolean |
isTransient()
|
java.lang.String |
ref()
Return the expression string for this value binding. |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setTransient(boolean transientFlag)
|
void |
setValue(javax.faces.context.FacesContext context,
java.lang.Object value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockValueBinding()
Construct a default instance.
public MockValueBinding(javax.faces.application.Application application, java.lang.String ref)
Construct a new value binding for the specified expression.
application
- Application instance to be wrappedref
- Expression to be wrappedMethod Detail |
---|
public java.lang.String ref()
Return the expression string for this value binding.
public java.lang.Object getValue(javax.faces.context.FacesContext context) throws javax.faces.el.EvaluationException, javax.faces.el.PropertyNotFoundException
getValue
in class javax.faces.el.ValueBinding
javax.faces.el.EvaluationException
javax.faces.el.PropertyNotFoundException
public void setValue(javax.faces.context.FacesContext context, java.lang.Object value) throws javax.faces.el.EvaluationException, javax.faces.el.PropertyNotFoundException
setValue
in class javax.faces.el.ValueBinding
javax.faces.el.EvaluationException
javax.faces.el.PropertyNotFoundException
public boolean isReadOnly(javax.faces.context.FacesContext context) throws javax.faces.el.PropertyNotFoundException
isReadOnly
in class javax.faces.el.ValueBinding
javax.faces.el.PropertyNotFoundException
public java.lang.Class getType(javax.faces.context.FacesContext context) throws javax.faces.el.PropertyNotFoundException
getType
in class javax.faces.el.ValueBinding
javax.faces.el.PropertyNotFoundException
public java.lang.String getExpressionString()
getExpressionString
in class javax.faces.el.ValueBinding
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
restoreState
in interface javax.faces.component.StateHolder
public boolean isTransient()
isTransient
in interface javax.faces.component.StateHolder
public void setTransient(boolean transientFlag)
setTransient
in interface javax.faces.component.StateHolder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |