public interface PojoPropertyAccessorIndexedNonArg extends PojoPropertyAccessor
property-accessor
that allows to perform something
(e.g. get or remove) for a given index
of an indexed property.Modifier and Type | Method and Description |
---|---|
PojoPropertyAccessorIndexedNonArgMode |
getMode()
This method gets the mode of this accessor.
|
Object |
invoke(Object pojoInstance,
int index)
This method invokes the according property-method of
pojoInstance with the given arguments. |
getAccessibleObject, getAccessibleObjectName, getDeclaringClass, getModifiers, getPropertyClass, getPropertyType, getReturnClass, getReturnType
getName
PojoPropertyAccessorIndexedNonArgMode getMode()
PojoPropertyAccessor
getMode
in interface PojoPropertyAccessor
Object invoke(Object pojoInstance, int index) 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 (e.g. where to get or remove an item).null
if void (e.g. remove method).ReflectionException
- if the underlying accessor
caused an
error during reflection.Copyright © 2001–2016 mmm-Team. All rights reserved.