public class PropertyUtil extends Object
See http://java.sun.com/products/javabeans/docs/index.html for more information on JavaBeans.
Modifier and Type | Field and Description |
---|---|
static Object[] |
NO_ARGUMENTS |
Constructor and Description |
---|
PropertyUtil() |
Modifier and Type | Method and Description |
---|---|
static PropertyDescriptor |
getPropertyDescriptor(String propertyName,
Object fromObj)
Returns the description of the property with the provided
name on the provided object's interface.
|
static PropertyDescriptor[] |
propertyDescriptorsFor(Object fromObj,
Class<Object> stopClass)
Returns all the property descriptors for the class associated with the given object
|
public static final Object[] NO_ARGUMENTS
public static PropertyDescriptor getPropertyDescriptor(String propertyName, Object fromObj) throws IllegalArgumentException
IllegalArgumentException
- if there's a introspection failurepublic static PropertyDescriptor[] propertyDescriptorsFor(Object fromObj, Class<Object> stopClass) throws IllegalArgumentException
fromObj
- Use the class of this objectstopClass
- TODOIllegalArgumentException
- if there's a introspection failureCopyright © 2016. All rights reserved.