public class MockValueBinding
extends javax.faces.el.ValueBinding
implements javax.faces.component.StateHolder
Mock implementation of ValueBinding.
| Constructor and Description |
|---|
MockValueBinding()
Construct a default instance.
|
MockValueBinding(javax.faces.application.Application application,
String ref)
Construct a new value binding for the specified expression.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
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 wrappedpublic 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.ValueBindingjavax.faces.el.EvaluationExceptionjavax.faces.el.PropertyNotFoundExceptionpublic void setValue(javax.faces.context.FacesContext context,
Object value)
throws javax.faces.el.EvaluationException,
javax.faces.el.PropertyNotFoundException
setValue in class javax.faces.el.ValueBindingjavax.faces.el.EvaluationExceptionjavax.faces.el.PropertyNotFoundExceptionpublic boolean isReadOnly(javax.faces.context.FacesContext context)
throws javax.faces.el.PropertyNotFoundException
isReadOnly in class javax.faces.el.ValueBindingjavax.faces.el.PropertyNotFoundExceptionpublic Class getType(javax.faces.context.FacesContext context) throws javax.faces.el.PropertyNotFoundException
getType in class javax.faces.el.ValueBindingjavax.faces.el.PropertyNotFoundExceptionpublic String getExpressionString()
getExpressionString in class javax.faces.el.ValueBindingpublic Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHolderpublic void restoreState(javax.faces.context.FacesContext context,
Object state)
restoreState in interface javax.faces.component.StateHolderpublic boolean isTransient()
isTransient in interface javax.faces.component.StateHolderpublic void setTransient(boolean transientFlag)
setTransient in interface javax.faces.component.StateHolderCopyright © 2017 The Apache Software Foundation. All rights reserved.