Top Description Fields Constructors Methods
com.univocity.parsers.common.beans

public final Class PropertyWrapper

extends Object
Class Inheritance
Imports
java.lang.reflect.*

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

Modifier and TypeField and Description
private String
private static final Method
private static final String
private final Object
private Method
private Method

Constructor Summary

AccessConstructor and Description
pack-priv
PropertyWrapper(Object propertyDescriptor)

Method Summary

Modifier and TypeMethod and Description
public final String

Returns:

The property name.
getName
()

Returns the name of a property of a Java bean.

private static Method
public final Method

Returns:

The method that should be used to read the property value, if available.
getReadMethod
()

Returns the method that should be used to read the value of a property of a Java bean.

public final Method

Returns:

The method that should be used to write the property value, if available.
getWriteMethod
()

Returns the method that should be used to write a value to a property of a Java bean.

private static Object
invoke(Object propertyDescriptor, Method method)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameback to summary
private String name
NO_METHODback to summary
private static final Method NO_METHOD
NO_NAMEback to summary
private static final String NO_NAME
propertyDescriptorback to summary
private final Object propertyDescriptor
readMethodback to summary
private Method readMethod
writeMethodback to summary
private Method writeMethod

Constructor Detail

PropertyWrapperback to summary
pack-priv PropertyWrapper(Object propertyDescriptor)

Method Detail

getNameback to summary
public final String getName()

Returns the name of a property of a Java bean. Might be null.

Returns:String

The property name.

getNullMethodback to summary
private static Method getNullMethod()
getReadMethodback to summary
public final Method getReadMethod()

Returns the method that should be used to read the value of a property of a Java bean. Might be null.

Returns:Method

The method that should be used to read the property value, if available.

getWriteMethodback to summary
public final Method getWriteMethod()

Returns the method that should be used to write a value to a property of a Java bean. Might be null.

Returns:Method

The method that should be used to write the property value, if available.

invokeback to summary
private static Object invoke(Object propertyDescriptor, Method method)