org.fest.util
Class Introspection
java.lang.Object
org.fest.util.Introspection
public final class Introspection
- extends Object
Understands utility methods related to
JavaBeans Introspection.
- Author:
- Alex Ruiz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
descriptorForProperty
public static PropertyDescriptor descriptorForProperty(String propertyName,
Object target)
- Returns a
PropertyDescriptor
for a property matching the given name in the given object.
- Parameters:
propertyName
- the given property name.target
- the given object.
- Returns:
- a
PropertyDescriptor
for a property matching the given name in the given object.
- Throws:
NullPointerException
- if the given property name is null
.
IllegalArgumentException
- if the given property name is empty.
NullPointerException
- if the given object is null
.
IntrospectionError
- if a matching property cannot be found or accessed.
Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.