public class BeanIntrospector
extends java.lang.Object
The java.beans.Introspector does not process the interfaces hierarchy chain, this one does.
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
BOOLEAN_GETTER |
private static java.lang.String |
GETTER |
private static java.util.Map<java.lang.Class<?>,PropertyDescriptor[]> |
introspected |
private static java.lang.String |
SETTER |
Modifier | Constructor and Description |
---|---|
private |
BeanIntrospector() |
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
decapitalize(java.lang.String name)
Make first character lower case unless the second character is upper case.
|
private static PropertyDescriptor[] |
getPDs(java.lang.Class<?> clazz) |
private static java.util.Map<java.lang.String,PropertyDescriptor> |
getPDs(java.lang.reflect.Method[] methods,
boolean setters) |
private static PropertyDescriptor[] |
getPropertyDescriptors(java.lang.Class<?> clazz)
Extract all
PropertyDescriptor s for properties with getters and setters for the given
class. |
static java.util.List<PropertyDescriptor> |
getPropertyDescriptorsWithGetters(java.lang.Class<?> clazz)
Extract all
PropertyDescriptor s for properties with a getter that does not come from
Object and does not accept parameters. |
static java.util.List<PropertyDescriptor> |
getPropertyDescriptorsWithGettersAndSetters(java.lang.Class<?> clazz)
Extract all
PropertyDescriptor s for properties with a getter (that does not come from
Object and does not accept parameters) and a setter. |
private static java.util.List<PropertyDescriptor> |
merge(java.util.Map<java.lang.String,PropertyDescriptor> getters,
java.util.Map<java.lang.String,PropertyDescriptor> setters) |
private static final java.util.Map<java.lang.Class<?>,PropertyDescriptor[]> introspected
private static final java.lang.String SETTER
private static final java.lang.String GETTER
private static final java.lang.String BOOLEAN_GETTER
private static PropertyDescriptor[] getPropertyDescriptors(java.lang.Class<?> clazz)
PropertyDescriptor
s for properties with getters and setters for the given
class.clazz
- The class to extract the desired PropertyDescriptor
s fromPropertyDescriptor
for properties with getters and setters for the given
class.public static java.util.List<PropertyDescriptor> getPropertyDescriptorsWithGetters(java.lang.Class<?> clazz)
PropertyDescriptor
s for properties with a getter that does not come from
Object
and does not accept parameters.clazz
- The class to extract the desired PropertyDescriptor
s fromPropertyDescriptor
s for properties with a getter that does not come from
Object
and does not accept parameters.public static java.util.List<PropertyDescriptor> getPropertyDescriptorsWithGettersAndSetters(java.lang.Class<?> clazz)
PropertyDescriptor
s for properties with a getter (that does not come from
Object
and does not accept parameters) and a setter.clazz
- The class to extract the desired PropertyDescriptor
s fromPropertyDescriptor
s for properties with a getter (that does not come from
Object
and does not accept parameters) and a setter.private static PropertyDescriptor[] getPDs(java.lang.Class<?> clazz)
private static java.util.Map<java.lang.String,PropertyDescriptor> getPDs(java.lang.reflect.Method[] methods, boolean setters)
private static java.util.List<PropertyDescriptor> merge(java.util.Map<java.lang.String,PropertyDescriptor> getters, java.util.Map<java.lang.String,PropertyDescriptor> setters)
private static java.lang.String decapitalize(java.lang.String name)