public final class Introspection extends Object
Modifier and Type | Method and Description |
---|---|
static PropertyDescriptor |
getProperty(String propertyName,
Object target)
Returns a
PropertyDescriptor for a property matching the given name in the given object. |
public static PropertyDescriptor getProperty(String propertyName, Object target)
PropertyDescriptor
for a property matching the given name in the given object.propertyName
- the given property name.target
- the given object.PropertyDescriptor
for a property matching the given name in the given object.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 © 2014–2016 AssertJ. All rights reserved.