org.apache.myfaces.el
Class PropertyResolverImpl

java.lang.Object
  |
  +--javax.faces.el.PropertyResolver
        |
        +--org.apache.myfaces.el.PropertyResolverImpl

public class PropertyResolverImpl
extends javax.faces.el.PropertyResolver

Version:
$Revision: 1.31 $ $Date: 2005/01/09 18:15:12 $ $Log: PropertyResolverImpl.java,v $ Revision 1.31 2005/01/09 18:15:12 mmarinschek small changes - better error handling, label renderer supports more hooks for sub-classes Revision 1.30 2004/12/03 08:41:45 manolito MYFACES-44 / PropertyResolverImpl has special logic for UIComponents Revision 1.29 2004/10/13 11:51:00 matze renamed packages to org.apache Revision 1.28 2004/09/20 14:35:48 dave0000 bug 1030875: getType() should return null if type cannot be determined isReadOnly() should return false if read-only cannot be determined Revision 1.27 2004/07/01 22:05:11 mwessendorf ASF switch Revision 1.26 2004/06/23 15:56:16 manolito removed our own version of commons-beanutils MethodUtils Revision 1.25 2004/05/18 17:09:29 manolito resolved the problem with inaccessible methods in private classes that implement a public interface Revision 1.24 2004/04/26 05:54:59 dave0000 Add coercion to ValueBinding (and related changes) Revision 1.23 2004/04/08 13:42:13 royalts removed main method Revision 1.22 2004/04/08 05:16:45 dave0000 change to always use JSF PropertyResolver (was using JSP PR sometimes) Revision 1.21 2004/04/06 06:48:23 manolito IndexedPropertyDescriptor issue
Author:
Manfred Geiler (latest modification by $Author: mmarinschek $), Anton Koinov

Constructor Summary
PropertyResolverImpl()
           
 
Method Summary
static java.lang.Object getProperty(java.lang.Object base, java.lang.String name)
           
static java.beans.PropertyDescriptor getPropertyDescriptor(java.beans.BeanInfo beanInfo, java.lang.String propertyName)
           
static java.beans.PropertyDescriptor getPropertyDescriptor(java.lang.Object base, java.lang.String name)
           
 java.lang.Class getType(java.lang.Object base, int index)
           
 java.lang.Class getType(java.lang.Object base, java.lang.Object property)
           
 java.lang.Object getValue(java.lang.Object base, int index)
           
 java.lang.Object getValue(java.lang.Object base, java.lang.Object property)
           
 boolean isReadOnly(java.lang.Object base, int index)
           
 boolean isReadOnly(java.lang.Object base, java.lang.Object property)
           
static void setProperty(java.lang.Object base, java.lang.String name, java.lang.Object newValue)
           
 void setValue(java.lang.Object base, int index, java.lang.Object newValue)
           
 void setValue(java.lang.Object base, java.lang.Object property, java.lang.Object newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyResolverImpl

public PropertyResolverImpl()
Method Detail

getValue

public java.lang.Object getValue(java.lang.Object base,
                                 java.lang.Object property)
                          throws javax.faces.el.EvaluationException,
                                 javax.faces.el.PropertyNotFoundException
Specified by:
getValue in class javax.faces.el.PropertyResolver
javax.faces.el.EvaluationException
javax.faces.el.PropertyNotFoundException

getValue

public java.lang.Object getValue(java.lang.Object base,
                                 int index)
                          throws javax.faces.el.EvaluationException,
                                 javax.faces.el.PropertyNotFoundException
Specified by:
getValue in class javax.faces.el.PropertyResolver
javax.faces.el.EvaluationException
javax.faces.el.PropertyNotFoundException

setValue

public void setValue(java.lang.Object base,
                     java.lang.Object property,
                     java.lang.Object newValue)
              throws javax.faces.el.EvaluationException,
                     javax.faces.el.PropertyNotFoundException
Specified by:
setValue in class javax.faces.el.PropertyResolver
javax.faces.el.EvaluationException
javax.faces.el.PropertyNotFoundException

setValue

public void setValue(java.lang.Object base,
                     int index,
                     java.lang.Object newValue)
              throws javax.faces.el.EvaluationException,
                     javax.faces.el.PropertyNotFoundException
Specified by:
setValue in class javax.faces.el.PropertyResolver
javax.faces.el.EvaluationException
javax.faces.el.PropertyNotFoundException

isReadOnly

public boolean isReadOnly(java.lang.Object base,
                          java.lang.Object property)
Specified by:
isReadOnly in class javax.faces.el.PropertyResolver

isReadOnly

public boolean isReadOnly(java.lang.Object base,
                          int index)
Specified by:
isReadOnly in class javax.faces.el.PropertyResolver

getType

public java.lang.Class getType(java.lang.Object base,
                               java.lang.Object property)
Specified by:
getType in class javax.faces.el.PropertyResolver

getType

public java.lang.Class getType(java.lang.Object base,
                               int index)
Specified by:
getType in class javax.faces.el.PropertyResolver

setProperty

public static void setProperty(java.lang.Object base,
                               java.lang.String name,
                               java.lang.Object newValue)

getProperty

public static java.lang.Object getProperty(java.lang.Object base,
                                           java.lang.String name)

getPropertyDescriptor

public static java.beans.PropertyDescriptor getPropertyDescriptor(java.lang.Object base,
                                                                  java.lang.String name)

getPropertyDescriptor

public static java.beans.PropertyDescriptor getPropertyDescriptor(java.beans.BeanInfo beanInfo,
                                                                  java.lang.String propertyName)