Class MapAccessor
- java.lang.Object
-
- org.beanio.internal.parser.accessor.MapAccessor
-
- All Implemented Interfaces:
PropertyAccessor
public class MapAccessor extends java.lang.Object implements PropertyAccessor
APropertyAccessor
for getting and settingMap
values.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description MapAccessor(java.lang.String key)
Constructs a newMapAccessor
.
-
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.java.lang.Object
getValue(java.lang.Object bean)
Returns the property value from a bean object.boolean
isConstructorArgument()
Returns whether this property is a constructor argument.void
setValue(java.lang.Object bean, java.lang.Object value)
Sets the property value on a bean object.
-
-
-
Method Detail
-
getValue
public java.lang.Object getValue(java.lang.Object bean)
Description copied from interface:PropertyAccessor
Returns the property value from a bean object.- Specified by:
getValue
in interfacePropertyAccessor
- Parameters:
bean
- the bean object to get the property from- Returns:
- the property value
-
setValue
public void setValue(java.lang.Object bean, java.lang.Object value)
Description copied from interface:PropertyAccessor
Sets the property value on a bean object.- Specified by:
setValue
in interfacePropertyAccessor
- Parameters:
bean
- the bean object to set the propertyvalue
- the property value
-
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
-
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
-
-