public class PojoPropertyAccessorProxyAdd extends AbstractPojoPropertyAccessorProxyAdapterComponentType implements PojoPropertyAccessorOneArg
PojoPropertyAccessorOneArg interface for
adding an element using the getter from another accessor returning an
array or Collection.| Modifier and Type | Field and Description |
|---|---|
private PojoPropertyAccessorOneArg |
containerSetAccessor
The according setter to use if array has to be resized.
|
| Constructor and Description |
|---|
PojoPropertyAccessorProxyAdd(PojoDescriptorDependencies dependencies,
PojoPropertyAccessorNonArg containerGetAccessor,
PojoPropertyAccessorOneArg containerSetAccessor)
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, getPropertyTypegetDelegate, getDependenciesgetAccessibleObject, getAccessibleObjectName, getDeclaringClass, getModifiers, getNametoStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAccessibleObject, getAccessibleObjectName, getDeclaringClass, getModifiers, getPropertyClass, getPropertyTypegetNameprivate final PojoPropertyAccessorOneArg containerSetAccessor
public PojoPropertyAccessorProxyAdd(PojoDescriptorDependencies dependencies, PojoPropertyAccessorNonArg containerGetAccessor, PojoPropertyAccessorOneArg containerSetAccessor)
dependencies - are the PojoDescriptorDependencies to use.containerGetAccessor - is the accessor delegate that gets an array, or list property.containerSetAccessor - is the accessor that sets the array, or Collection property. May be
null if NOT available.public PojoPropertyAccessorOneArgMode getMode()
PojoPropertyAccessorgetMode in interface PojoPropertyAccessorgetMode in interface PojoPropertyAccessorOneArggetMode in class AbstractPojoPropertyAccessorProxypublic GenericType<?> getReturnType()
PojoPropertyAccessorGenericType of the object returned when this accessor is invoked.getReturnType in interface PojoPropertyAccessorgetReturnType in class AbstractPojoPropertyAccessorProxyMethod.getGenericReturnType(),
Field.getGenericType()public Class<?> getReturnClass()
PojoPropertyAccessorClass of the object returned when this accessor is invoked. PojoPropertyAccessor.getReturnType().getRetrievalClass()getReturnClass in interface PojoPropertyAccessorgetReturnClass in class AbstractPojoPropertyAccessorProxyMethod.getReturnType(),
Field.getType()public Object invoke(Object pojoInstance, Object argument)
PojoPropertyAccessorOneArgpojoInstance with the given arguments. invoke in interface PojoPropertyAccessorOneArgpojoInstance - 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.