Class BeanHelper
- java.lang.Object
-
- com.univocity.parsers.common.beans.BeanHelper
-
public final class BeanHelper extends java.lang.ObjectHelper class used to obtain property descriptors from annotated java beans whose values are set via reflection. This class was implemented to eliminate direct compile-time dependency withIntrospectorand other classes in thejava.beans.*package. This is required to allow Android developers to use univocity-parsers. Android developers should add have openbeans-1.0.jar in their classpath to be able to use univocity-parsers. When available, the classes from packagecom.googlecode.openbeans.*will be used, otherwise the bean introspection classes classes fromjava.beans.*package will be loaded. If everything fails, then the parser will try to manipulate fields in annotated java beans directly, instead of using their getters and setters.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PropertyWrapper[]getPropertyDescriptors(java.lang.Class<?> beanClass)Returns the property descriptors of all properties available from a class
-
-
-
Method Detail
-
getPropertyDescriptors
public static PropertyWrapper[] getPropertyDescriptors(java.lang.Class<?> beanClass)
Returns the property descriptors of all properties available from a class- Parameters:
beanClass- the class whose property descriptors should be returned- Returns:
- an array of all property descriptors of the given class. Might be empty.
-
-