org.ajax4jsf.tests
Class MockValueBinding

java.lang.Object
  extended by javax.faces.el.ValueBinding
      extended by org.ajax4jsf.tests.MockValueBinding

public class MockValueBinding
extends javax.faces.el.ValueBinding

Author:
Nick Belaevski - nbelaevski@exadel.com created 13.04.2007

Constructor Summary
MockValueBinding(java.lang.Object value, java.lang.Class clazz)
           
 
Method Summary
 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)
           
 void setValue(javax.faces.context.FacesContext context, java.lang.Object value)
           
 
Methods inherited from class javax.faces.el.ValueBinding
getExpressionString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockValueBinding

public MockValueBinding(java.lang.Object value,
                        java.lang.Class clazz)
Method Detail

getType

public java.lang.Class getType(javax.faces.context.FacesContext context)
                        throws javax.faces.el.EvaluationException,
                               javax.faces.el.PropertyNotFoundException
Specified by:
getType in class javax.faces.el.ValueBinding
Throws:
javax.faces.el.EvaluationException
javax.faces.el.PropertyNotFoundException

getValue

public java.lang.Object getValue(javax.faces.context.FacesContext context)
                          throws javax.faces.el.EvaluationException,
                                 javax.faces.el.PropertyNotFoundException
Specified by:
getValue in class javax.faces.el.ValueBinding
Throws:
javax.faces.el.EvaluationException
javax.faces.el.PropertyNotFoundException

isReadOnly

public boolean isReadOnly(javax.faces.context.FacesContext context)
                   throws javax.faces.el.EvaluationException,
                          javax.faces.el.PropertyNotFoundException
Specified by:
isReadOnly in class javax.faces.el.ValueBinding
Throws:
javax.faces.el.EvaluationException
javax.faces.el.PropertyNotFoundException

setValue

public void setValue(javax.faces.context.FacesContext context,
                     java.lang.Object value)
              throws javax.faces.el.EvaluationException,
                     javax.faces.el.PropertyNotFoundException
Specified by:
setValue in class javax.faces.el.ValueBinding
Throws:
javax.faces.el.EvaluationException
javax.faces.el.PropertyNotFoundException


Copyright © 2009. All Rights Reserved.