org.apache.shale.test.mock
Class MockPropertyResolver

java.lang.Object
  extended by javax.faces.el.PropertyResolver
      extended by org.apache.shale.test.mock.MockPropertyResolver

public class MockPropertyResolver
extends javax.faces.el.PropertyResolver

Mock implementation of PropertyResolver.

$Id$


Constructor Summary
MockPropertyResolver()
          Construct a default instance.
 
Method Summary
 Class getType(Object base, int index)
          
 Class getType(Object base, Object property)
          
 Object getValue(Object base, int index)
          
 Object getValue(Object base, Object property)
          
 boolean isReadOnly(Object base, int index)
          
 boolean isReadOnly(Object base, Object property)
          
 void setValue(Object base, int index, Object value)
          
 void setValue(Object base, Object property, Object value)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockPropertyResolver

public MockPropertyResolver()

Construct a default instance.

Method Detail

getValue

public Object getValue(Object base,
                       Object property)
                throws javax.faces.el.EvaluationException,
                       javax.faces.el.PropertyNotFoundException

Specified by:
getValue in class javax.faces.el.PropertyResolver
Throws:
javax.faces.el.EvaluationException
javax.faces.el.PropertyNotFoundException

getValue

public Object getValue(Object base,
                       int index)
                throws javax.faces.el.PropertyNotFoundException

Specified by:
getValue in class javax.faces.el.PropertyResolver
Throws:
javax.faces.el.PropertyNotFoundException

setValue

public void setValue(Object base,
                     Object property,
                     Object value)
              throws javax.faces.el.PropertyNotFoundException

Specified by:
setValue in class javax.faces.el.PropertyResolver
Throws:
javax.faces.el.PropertyNotFoundException

setValue

public void setValue(Object base,
                     int index,
                     Object value)
              throws javax.faces.el.PropertyNotFoundException

Specified by:
setValue in class javax.faces.el.PropertyResolver
Throws:
javax.faces.el.PropertyNotFoundException

isReadOnly

public boolean isReadOnly(Object base,
                          Object property)
                   throws javax.faces.el.PropertyNotFoundException

Specified by:
isReadOnly in class javax.faces.el.PropertyResolver
Throws:
javax.faces.el.PropertyNotFoundException

isReadOnly

public boolean isReadOnly(Object base,
                          int index)
                   throws javax.faces.el.PropertyNotFoundException

Specified by:
isReadOnly in class javax.faces.el.PropertyResolver
Throws:
javax.faces.el.PropertyNotFoundException

getType

public Class getType(Object base,
                     Object property)
              throws javax.faces.el.PropertyNotFoundException

Specified by:
getType in class javax.faces.el.PropertyResolver
Throws:
javax.faces.el.PropertyNotFoundException

getType

public Class getType(Object base,
                     int index)
              throws javax.faces.el.PropertyNotFoundException

Specified by:
getType in class javax.faces.el.PropertyResolver
Throws:
javax.faces.el.PropertyNotFoundException


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.