|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.displaytag.util.LookupUtil
public final class LookupUtil
Utility class with methods for object and properties retrieving.
| Method Summary | |
|---|---|
static java.lang.Object |
getBeanProperty(java.lang.Object bean,
java.lang.String name)
Returns the value of a property in the given bean. |
static java.lang.Object |
getBeanValue(javax.servlet.jsp.PageContext pageContext,
java.lang.String beanAndPropertyName,
int scope)
Read an object from the pagecontext with the specified scope and eventually lookup a property in it. |
static java.lang.Object |
getIndexedProperty(java.lang.Object bean,
java.lang.String name)
Return the value of the specified indexed property of the specified bean, with no type conversions. |
static java.lang.Object |
getProperty(java.lang.Object bean,
java.lang.String name)
Return the value of the (possibly nested) property of the specified name, for the specified bean, with no type conversions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.Object getBeanValue(javax.servlet.jsp.PageContext pageContext,
java.lang.String beanAndPropertyName,
int scope)
throws ObjectLookupException
pageContext - PageContextbeanAndPropertyName - String expression with bean name and attributesscope - One of the following values:
ObjectLookupException - for errors while retrieving a property in the bean
public static java.lang.Object getBeanProperty(java.lang.Object bean,
java.lang.String name)
throws ObjectLookupException
Returns the value of a property in the given bean.
Handle NestedNullException returning nulls and other exceptions returning
ObjectLookupException.
bean - javabeanname - name of the property to read from the javabean
ObjectLookupException - for errors while retrieving a property in the bean
public static java.lang.Object getProperty(java.lang.Object bean,
java.lang.String name)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException,
java.lang.NoSuchMethodException
bean - Bean whose property is to be extractedname - Possibly nested name of the property to be extracted
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
BeanPropertyLookupException - in caso di errori nella lettura di propriet� del bean
public static java.lang.Object getIndexedProperty(java.lang.Object bean,
java.lang.String name)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException,
java.lang.NoSuchMethodException
IllegalArgumentException will be thrown. In addition to supporting the JavaBeans specification,
this method has been extended to support List objects as well.
bean - Bean whose property is to be extractedname - propertyname[index] of the property value to be extracted
java.lang.IllegalAccessException - if the caller does not have access to the property accessor method
java.lang.reflect.InvocationTargetException - if the property accessor method throws an exception
java.lang.NoSuchMethodException - if an accessor method for this propety cannot be found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||