Package org.jmock.util
Class PropertyUtil
- java.lang.Object
-
- org.jmock.util.PropertyUtil
-
public class PropertyUtil extends java.lang.ObjectUtility class for accessing properties on JavaBean objects. See http://java.sun.com/products/javabeans/docs/index.html for more information on JavaBeans.- Since:
- 1.1.0
- Author:
- Iain McGinniss
-
-
Constructor Summary
Constructors Constructor Description PropertyUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.beans.PropertyDescriptorgetPropertyDescriptor(java.lang.String propertyName, java.lang.Object fromObj)Returns the description of the property with the provided name on the provided object's interface.
-
-
-
Method Detail
-
getPropertyDescriptor
public static java.beans.PropertyDescriptor getPropertyDescriptor(java.lang.String propertyName, java.lang.Object fromObj) throws java.beans.IntrospectionExceptionReturns the description of the property with the provided name on the provided object's interface.- Returns:
- the description of the property, or null if the property does not exist.
- Throws:
java.beans.IntrospectionException- if an error occured using the JavaBean Introspector class to query the properties of the provided class.
-
-