|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.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,
String ref)
Construct a new value binding for the specified expression. |
Method Summary | |
---|---|
String |
getExpressionString()
|
Class |
getType(javax.faces.context.FacesContext context)
|
Object |
getValue(javax.faces.context.FacesContext context)
|
boolean |
isReadOnly(javax.faces.context.FacesContext context)
|
boolean |
isTransient()
|
String |
ref()
Return the expression string for this value binding. |
void |
restoreState(javax.faces.context.FacesContext context,
Object state)
|
Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setTransient(boolean transientFlag)
|
void |
setValue(javax.faces.context.FacesContext context,
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, String ref)
Construct a new value binding for the specified expression.
application
- Application instance to be wrappedref
- Expression to be wrappedMethod Detail |
---|
public String ref()
Return the expression string for this value binding.
public 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, 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 Class getType(javax.faces.context.FacesContext context) throws javax.faces.el.PropertyNotFoundException
getType
in class javax.faces.el.ValueBinding
javax.faces.el.PropertyNotFoundException
public String getExpressionString()
getExpressionString
in class javax.faces.el.ValueBinding
public Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
public void restoreState(javax.faces.context.FacesContext context, 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 |