Home » displaytag-1.1.1-src » org » displaytag » util » [javadoc | source]
org.displaytag.util
public final class: LookupUtil [javadoc | source]
java.lang.Object
   org.displaytag.util.LookupUtil
Utility class with methods for object and properties retrieving.
Method from org.displaytag.util.LookupUtil Summary:
getBeanProperty,   getBeanValue,   getIndexedProperty,   getProperty
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.displaytag.util.LookupUtil Detail:
 public static Object getBeanProperty(Object bean,
    String name) throws ObjectLookupException 

    Returns the value of a property in the given bean.

    Handle NestedNullException returning nulls and other exceptions returning ObjectLookupException.

 public static Object getBeanValue(PageContext pageContext,
    String beanAndPropertyName,
    int scope) throws ObjectLookupException 
    Read an object from the pagecontext with the specified scope and eventually lookup a property in it.
 public static Object getIndexedProperty(Object bean,
    String name) throws InvocationTargetException, NoSuchMethodException, IllegalAccessException 
    Return the value of the specified indexed property of the specified bean, with no type conversions. The zero-relative index of the required value must be included (in square brackets) as a suffix to the property name, or IllegalArgumentException will be thrown. In addition to supporting the JavaBeans specification, this method has been extended to support List objects as well.
 public static Object getProperty(Object bean,
    String name) throws InvocationTargetException, NoSuchMethodException, IllegalAccessException 
    Return the value of the (possibly nested) property of the specified name, for the specified bean, with no type conversions.