Class PropertyWrapper

java.lang.Object
com.univocity.parsers.common.beans.PropertyWrapper

public final class PropertyWrapper extends Object
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 Details

    • NO_METHOD

      private static final Method NO_METHOD
    • NO_NAME

      private static final String NO_NAME
      See Also:
    • propertyDescriptor

      private final Object propertyDescriptor
    • writeMethod

      private Method writeMethod
    • readMethod

      private Method readMethod
    • name

      private String name
  • Constructor Details

    • PropertyWrapper

      PropertyWrapper(Object propertyDescriptor)
  • Method Details

    • getWriteMethod

      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:
      The method that should be used to write the property value, if available.
    • getReadMethod

      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:
      The method that should be used to read the property value, if available.
    • getName

      public final String getName()
      Returns the name of a property of a Java bean. Might be null.
      Returns:
      The property name.
    • invoke

      private static Object invoke(Object propertyDescriptor, Method method)
    • getNullMethod

      private static Method getNullMethod()