net.sf.mmm.util.pojo.descriptor.api.accessor
Interface PojoPropertyAccessorIndexedNonArg
- All Superinterfaces:
- PojoAttributeName, PojoPropertyAccessor
- All Known Implementing Classes:
- PojoPropertyAccessorIndexedNonArgMethod, PojoPropertyAccessorProxyGetIndexed
public interface PojoPropertyAccessorIndexedNonArg
- extends PojoPropertyAccessor
This is the interface for a property-accessor
that allows to perform something (e.g. get or
remove) for a given index of an indexed property.
- Since:
- 1.1.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
getMode
PojoPropertyAccessorIndexedNonArgMode getMode()
- This method gets the mode of this accessor.
- Specified by:
getMode in interface PojoPropertyAccessor
- Returns:
- the access mode.
invoke
Object invoke(Object pojoInstance,
int index)
throws ReflectionException
- This method invokes the according property-method of
pojoInstance with the given arguments.
- Parameters:
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).
- Returns:
- the result of the invocation. Will be
null if void
(e.g. remove method).
- Throws:
ReflectionException - if the underlying
accessor caused
an error during reflection.
Copyright © 2001-2010 mmm-Team. All Rights Reserved.