BeanIO 2.0.4

org.beanio.internal.parser.accessor
Class PropertyAccessorSupport

java.lang.Object
  extended by org.beanio.internal.parser.accessor.PropertyAccessorSupport
All Implemented Interfaces:
PropertyAccessor
Direct Known Subclasses:
FieldReflectionAccessor, MethodReflectionAccessor

public abstract class PropertyAccessorSupport
extends Object
implements PropertyAccessor

Base class for PropertyAccessor implementations.

Since:
2.0
Author:
Kevin Seim

Constructor Summary
PropertyAccessorSupport()
          Constructs a new PropertyAccessorSupport.
 
Method Summary
 int getConstructorArgumentIndex()
          Returns the constructor argument index, or -1 if this property is not a constructor argument.
 boolean isConstructorArgument()
          Returns whether this property is a constructor argument.
 void setConstructorArgumentIndex(int index)
          Sets the constructor argument index (starting at 0).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.beanio.internal.parser.PropertyAccessor
getValue, setValue
 

Constructor Detail

PropertyAccessorSupport

public PropertyAccessorSupport()
Constructs a new PropertyAccessorSupport.

Method Detail

isConstructorArgument

public boolean isConstructorArgument()
Description copied from interface: PropertyAccessor
Returns whether this property is a constructor argument.

Specified by:
isConstructorArgument in interface PropertyAccessor
Returns:
true if this property is a constructor argument, false otherwise

setConstructorArgumentIndex

public void setConstructorArgumentIndex(int index)
Sets the constructor argument index (starting at 0). Set to -1 to indicate this property is not a constructor argument.

Parameters:
index - the constructor argument index

getConstructorArgumentIndex

public int getConstructorArgumentIndex()
Description copied from interface: PropertyAccessor
Returns the constructor argument index, or -1 if this property is not a constructor argument.

Specified by:
getConstructorArgumentIndex in interface PropertyAccessor
Returns:
the constructor argument index

BeanIO 2.0.4

Copyright © 2010-2013 Kevin Seim