Package org.fest.util
Class Introspection
- java.lang.Object
-
- org.fest.util.Introspection
-
public final class Introspection extends java.lang.ObjectUtility methods related to JavaBeans Introspection.- Author:
- Alex Ruiz
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.beans.PropertyDescriptorgetProperty(java.lang.String propertyName, java.lang.Object target)Returns aPropertyDescriptorfor a property matching the given name in the given object.
-
-
-
Method Detail
-
getProperty
public static java.beans.PropertyDescriptor getProperty(java.lang.String propertyName, java.lang.Object target)Returns aPropertyDescriptorfor a property matching the given name in the given object.- Parameters:
propertyName- the given property name.target- the given object.- Returns:
- a
PropertyDescriptorfor a property matching the given name in the given object. - Throws:
java.lang.NullPointerException- if the given property name isnull.java.lang.IllegalArgumentException- if the given property name is empty.java.lang.NullPointerException- if the given object isnull.IntrospectionError- if a matching property cannot be found or accessed.
-
-