public class PojoPropertyAccessorProxyGetMapped extends AbstractPojoPropertyAccessorProxyAdapterComponentType implements PojoPropertyAccessorOneArg
PojoPropertyAccessorOneArg
interface for
getting
an element from another accessor returning a
Map
.Constructor and Description |
---|
PojoPropertyAccessorProxyGetMapped(PojoDescriptorDependencies dependencies,
PojoPropertyAccessorNonArg mapGetAccessor)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
PojoPropertyAccessorOneArgMode |
getMode()
This method gets the mode of this accessor.
|
Class<?> |
getReturnClass()
This method gets the
Class of the object returned when this accessor is invoked . |
GenericType<?> |
getReturnType()
This method gets the
GenericType of the object returned when this accessor is invoked . |
Object |
invoke(Object pojoInstance,
Object argument)
This method invokes the according property-method of
pojoInstance with the given arguments. |
getPropertyClass, getPropertyType
getDelegate, getDependencies
getAccessibleObject, getAccessibleObjectName, getDeclaringClass, getModifiers, getName
toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAccessibleObject, getAccessibleObjectName, getDeclaringClass, getModifiers, getPropertyClass, getPropertyType
getName
public PojoPropertyAccessorProxyGetMapped(PojoDescriptorDependencies dependencies, PojoPropertyAccessorNonArg mapGetAccessor)
dependencies
- are the PojoDescriptorDependencies
to use.mapGetAccessor
- is the accessor delegate that gets a Map
property.public PojoPropertyAccessorOneArgMode getMode()
PojoPropertyAccessor
getMode
in interface PojoPropertyAccessor
getMode
in interface PojoPropertyAccessorOneArg
getMode
in class AbstractPojoPropertyAccessorProxy
public GenericType<?> getReturnType()
PojoPropertyAccessor
GenericType
of the object returned when this accessor is invoked
.getReturnType
in interface PojoPropertyAccessor
getReturnType
in class AbstractPojoPropertyAccessorProxy
Method.getGenericReturnType()
,
Field.getGenericType()
public Class<?> getReturnClass()
PojoPropertyAccessor
Class
of the object returned when this accessor is invoked
. PojoPropertyAccessor.getReturnType()
.getRetrievalClass()
getReturnClass
in interface PojoPropertyAccessor
getReturnClass
in class AbstractPojoPropertyAccessorProxy
Method.getReturnType()
,
Field.getType()
public Object invoke(Object pojoInstance, Object argument)
PojoPropertyAccessorOneArg
pojoInstance
with the given arguments. invoke
in interface PojoPropertyAccessorOneArg
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.argument
- is the value of the property to set.null
if void (e.g. regular setter method).Copyright © 2001–2016 mmm-Team. All rights reserved.