Class PropertyWrapper
- java.lang.Object
-
- com.univocity.parsers.common.beans.PropertyWrapper
-
public final class PropertyWrapper extends java.lang.ObjectWrapper for a implementation of PropertyDescriptor from eitherjava.beans.PropertyDescriptororcom.googlecode.openbeans.PropertyDescriptor. Used to eliminate compile-time dependencies with packagejava.beans.*which is not available to Android developers.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringnameprivate static java.lang.reflect.MethodNO_METHODprivate static java.lang.StringNO_NAMEprivate java.lang.ObjectpropertyDescriptorprivate java.lang.reflect.MethodreadMethodprivate java.lang.reflect.MethodwriteMethod
-
Constructor Summary
Constructors Constructor Description PropertyWrapper(java.lang.Object propertyDescriptor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Returns the name of a property of a Java bean.private static java.lang.reflect.MethodgetNullMethod()java.lang.reflect.MethodgetReadMethod()Returns the method that should be used to read the value of a property of a Java bean.java.lang.reflect.MethodgetWriteMethod()Returns the method that should be used to write a value to a property of a Java bean.private static java.lang.Objectinvoke(java.lang.Object propertyDescriptor, java.lang.reflect.Method method)
-
-
-
Field Detail
-
NO_METHOD
private static final java.lang.reflect.Method NO_METHOD
-
NO_NAME
private static final java.lang.String NO_NAME
- See Also:
- Constant Field Values
-
propertyDescriptor
private final java.lang.Object propertyDescriptor
-
writeMethod
private java.lang.reflect.Method writeMethod
-
readMethod
private java.lang.reflect.Method readMethod
-
name
private java.lang.String name
-
-
Method Detail
-
getWriteMethod
public final java.lang.reflect.Method 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
public final java.lang.reflect.Method 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
public final java.lang.String getName()
Returns the name of a property of a Java bean. Might benull.- Returns:
- The property name.
-
invoke
private static java.lang.Object invoke(java.lang.Object propertyDescriptor, java.lang.reflect.Method method)
-
getNullMethod
private static java.lang.reflect.Method getNullMethod()
-
-