| 限定符 | 构造器和说明 |
|---|---|
protected |
JavaBeans() |
| 限定符和类型 | 方法和说明 |
|---|---|
static PropertyDescriptor |
getPropertyDescriptor(Class<?> clazz,
String propertyName)
Retrieve the JavaBeans
PropertyDescriptors for the given property. |
static PropertyDescriptor[] |
getPropertyDescriptors(Class<?> clazz)
Retrieve the JavaBeans
PropertyDescriptors of a given class. |
public static PropertyDescriptor[] getPropertyDescriptors(Class<?> clazz) throws BeansException
PropertyDescriptors of a given class.clazz - the Class to retrieve the PropertyDescriptors forPropertyDescriptors for the given classBeansException - if PropertyDescriptor look fails@Nullable public static PropertyDescriptor getPropertyDescriptor(Class<?> clazz, String propertyName) throws BeansException
PropertyDescriptors for the given property.clazz - the Class to retrieve the PropertyDescriptor forpropertyName - the name of the propertynull if noneBeansException - if PropertyDescriptor lookup failsCopyright © 2022. All rights reserved.