public interface PojoPropertyAccessorIndexedOneArg extends PojoPropertyAccessor
property-accessor that allows to
apply an item at a given index in an indexed property.| Modifier and Type | Method and Description |
|---|---|
PojoPropertyAccessorIndexedOneArgMode |
getMode()
This method gets the mode of this accessor.
|
Object |
invoke(Object pojoInstance,
int index,
Object item)
This method invokes the according property-method of
pojoInstance with the given arguments. |
getAccessibleObject, getAccessibleObjectName, getDeclaringClass, getModifiers, getPropertyClass, getPropertyType, getReturnClass, getReturnTypegetNamePojoPropertyAccessorIndexedOneArgMode getMode()
PojoPropertyAccessorgetMode in interface PojoPropertyAccessorObject invoke(Object pojoInstance, int index, Object item) throws ReflectionException
pojoInstance with the given arguments. pojoInstance - is the instance of the POJO where to access the property. Has to be an instance of the
type from where this accessor was
created for.index - is the position in the indexed property where to apply (e.g. set or insert) the given item.item - is the value to apply (e.g. set or insert) as element of the indexed property.null if void (e.g. regular setter method).ReflectionException - if the underlying accessor caused an
error during reflection.Copyright © 2001–2016 mmm-Team. All rights reserved.