|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.beanio.internal.parser.accessor.MapAccessor
public class MapAccessor
A PropertyAccessor
for getting and setting Map
values.
Constructor Summary | |
---|---|
MapAccessor(String key)
Constructs a new MapAccessor. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapAccessor(String key)
key
- the key used to get and set a value from a Map beanMethod Detail |
---|
public Object getValue(Object bean)
PropertyAccessor
getValue
in interface PropertyAccessor
bean
- the bean object to get the property from
public void setValue(Object bean, Object value)
PropertyAccessor
setValue
in interface PropertyAccessor
bean
- the bean object to set the propertyvalue
- the property valuepublic boolean isConstructorArgument()
PropertyAccessor
isConstructorArgument
in interface PropertyAccessor
public int getConstructorArgumentIndex()
PropertyAccessor
getConstructorArgumentIndex
in interface PropertyAccessor
|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |