Package com.rometools.rome.feed.impl
Class BeanIntrospector
- java.lang.Object
-
- com.rometools.rome.feed.impl.BeanIntrospector
-
public class BeanIntrospector extends Object
Obtains all property descriptors from a bean (interface or implementation).The java.beans.Introspector does not process the interfaces hierarchy chain, this one does.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<PropertyDescriptor>getPropertyDescriptorsWithGetters(Class<?> clazz)Extract allPropertyDescriptors for properties with a getter that does not come fromObjectand does not accept parameters.static List<PropertyDescriptor>getPropertyDescriptorsWithGettersAndSetters(Class<?> clazz)Extract allPropertyDescriptors for properties with a getter (that does not come fromObjectand does not accept parameters) and a setter.
-
-
-
Method Detail
-
getPropertyDescriptorsWithGetters
public static List<PropertyDescriptor> getPropertyDescriptorsWithGetters(Class<?> clazz)
Extract allPropertyDescriptors for properties with a getter that does not come fromObjectand does not accept parameters.- Parameters:
clazz- The class to extract the desiredPropertyDescriptors from- Returns:
- All
PropertyDescriptors for properties with a getter that does not come fromObjectand does not accept parameters.
-
getPropertyDescriptorsWithGettersAndSetters
public static List<PropertyDescriptor> getPropertyDescriptorsWithGettersAndSetters(Class<?> clazz)
Extract allPropertyDescriptors for properties with a getter (that does not come fromObjectand does not accept parameters) and a setter.- Parameters:
clazz- The class to extract the desiredPropertyDescriptors from- Returns:
- All
PropertyDescriptors for properties with a getter (that does not come fromObjectand does not accept parameters) and a setter.
-
-