BeanIO 2.0.4

org.beanio.internal.parser
Interface PropertyAccessor

All Known Implementing Classes:
FieldReflectionAccessor, MapAccessor, MethodReflectionAccessor, PropertyAccessorSupport

public interface PropertyAccessor

A PropertyAccessor provides access to a bean property.

Implementations must be thread safe.

Since:
2.0
Author:
Kevin Seim

Method Summary
 int getConstructorArgumentIndex()
          Returns the constructor argument index, or -1 if this property is not a constructor argument.
 Object getValue(Object bean)
          Returns the property value from a bean object.
 boolean isConstructorArgument()
          Returns whether this property is a constructor argument.
 void setValue(Object bean, Object value)
          Sets the property value on a bean object.
 

Method Detail

getValue

Object getValue(Object bean)
Returns the property value from a bean object.

Parameters:
bean - the bean object to get the property from
Returns:
the property value

setValue

void setValue(Object bean,
              Object value)
Sets the property value on a bean object.

Parameters:
bean - the bean object to set the property
value - the property value

isConstructorArgument

boolean isConstructorArgument()
Returns whether this property is a constructor argument.

Returns:
true if this property is a constructor argument, false otherwise

getConstructorArgumentIndex

int getConstructorArgumentIndex()
Returns the constructor argument index, or -1 if this property is not a constructor argument.

Returns:
the constructor argument index

BeanIO 2.0.4

Copyright © 2010-2013 Kevin Seim