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.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
Copyright © 2004-2013 Apache Software Foundation. All Rights Reserved.