Class PropertyAccessorSupport
- java.lang.Object
-
- org.beanio.internal.parser.accessor.PropertyAccessorSupport
-
- All Implemented Interfaces:
PropertyAccessor
- Direct Known Subclasses:
FieldReflectionAccessor
,MethodReflectionAccessor
public abstract class PropertyAccessorSupport extends java.lang.Object implements PropertyAccessor
Base class forPropertyAccessor
implementations.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description PropertyAccessorSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Method Detail
-
isConstructorArgument
public boolean isConstructorArgument()
Description copied from interface:PropertyAccessor
Returns whether this property is a constructor argument.- Specified by:
isConstructorArgument
in interfacePropertyAccessor
- 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 interfacePropertyAccessor
- Returns:
- the constructor argument index
-
-