Class PropertyWrapper
java.lang.Object
com.univocity.parsers.common.beans.PropertyWrapper
Wrapper for a implementation of PropertyDescriptor from either
java.beans.PropertyDescriptor
or com.googlecode.openbeans.PropertyDescriptor
.
Used to eliminate compile-time dependencies with package java.beans.*
which is not
available to Android developers.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal String
getName()
Returns the name of a property of a Java bean.private static Method
final Method
Returns the method that should be used to read the value of a property of a Java bean.final Method
Returns the method that should be used to write a value to a property of a Java bean.private static Object
-
Field Details
-
NO_METHOD
-
NO_NAME
- See Also:
-
propertyDescriptor
-
writeMethod
-
readMethod
-
name
-
-
Constructor Details
-
PropertyWrapper
PropertyWrapper(Object propertyDescriptor)
-
-
Method Details
-
getWriteMethod
Returns the method that should be used to write a value to a property of a Java bean. Might benull
.- Returns:
- The method that should be used to write the property value, if available.
-
getReadMethod
Returns the method that should be used to read the value of a property of a Java bean. Might benull
.- Returns:
- The method that should be used to read the property value, if available.
-
getName
Returns the name of a property of a Java bean. Might benull
.- Returns:
- The property name.
-
invoke
-
getNullMethod
-