public class PropertyUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Object[] |
NO_ARGUMENTS |
| Constructor and Description |
|---|
PropertyUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.beans.PropertyDescriptor |
getPropertyDescriptor(java.lang.String propertyName,
java.lang.Object fromObj)
Returns the description of the property with the provided
name on the provided object's interface.
|
static java.beans.PropertyDescriptor[] |
propertyDescriptorsFor(java.lang.Object fromObj,
java.lang.Class<java.lang.Object> stopClass)
Returns all the property descriptors for the class associated with the given object
|
public static java.beans.PropertyDescriptor getPropertyDescriptor(java.lang.String propertyName,
java.lang.Object fromObj)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - if there's a introspection failurepublic static java.beans.PropertyDescriptor[] propertyDescriptorsFor(java.lang.Object fromObj,
java.lang.Class<java.lang.Object> stopClass)
throws java.lang.IllegalArgumentException
fromObj - Use the class of this objectstopClass - Don't include any properties from this ancestor class upwards.java.lang.IllegalArgumentException - if there's a introspection failure