PropertyUtil (jMock API Documentation)
Keywords: org.jmock.util.PropertyUtil class

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jmock.util
Class PropertyUtil

    java.lang.Object
      org.jmock.util.PropertyUtil

    public class PropertyUtil

extends Object

Utility 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
`PropertyUtil()`

Method Summary
`static PropertyDescriptor` | `getPropertyDescriptor(String propertyName, Object fromObj)` Returns the description of the property with the provided name on the provided object's interface.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### PropertyUtil

    public PropertyUtil()

Method Detail

### getPropertyDescriptor

    public static PropertyDescriptor getPropertyDescriptor(String propertyName,
                                                           Object fromObj)
                                                    throws IntrospectionException

  Returns 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:
    `IntrospectionException` - if an error occured using the JavaBean Introspector class to query the properties of the provided class.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD