Class MapAccessor
- java.lang.Object
-
- org.beanio.internal.parser.accessor.MapAccessor
-
- All Implemented Interfaces:
PropertyAccessor
public class MapAccessor extends java.lang.Object implements PropertyAccessor
APropertyAccessorfor getting and settingMapvalues.- 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 intgetConstructorArgumentIndex()Returns the constructor argument index, or -1 if this property is not a constructor argument.java.lang.ObjectgetValue(java.lang.Object bean)Returns the property value from a bean object.booleanisConstructorArgument()Returns whether this property is a constructor argument.voidsetValue(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:PropertyAccessorReturns the property value from a bean object.- Specified by:
getValuein 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:PropertyAccessorSets the property value on a bean object.- Specified by:
setValuein interfacePropertyAccessor- Parameters:
bean- the bean object to set the propertyvalue- the property value
-
isConstructorArgument
public boolean isConstructorArgument()
Description copied from interface:PropertyAccessorReturns whether this property is a constructor argument.- Specified by:
isConstructorArgumentin interfacePropertyAccessor- Returns:
- true if this property is a constructor argument, false otherwise
-
getConstructorArgumentIndex
public int getConstructorArgumentIndex()
Description copied from interface:PropertyAccessorReturns the constructor argument index, or -1 if this property is not a constructor argument.- Specified by:
getConstructorArgumentIndexin interfacePropertyAccessor- Returns:
- the constructor argument index
-
-