public class PojoPropertyAccessorProxyGetSize extends AbstractPojoPropertyAccessorProxyAdapter implements PojoPropertyAccessorNonArg
PojoPropertyAccessorNonArg interface for
getting the size of an array, List or
Map from another accessor.| Constructor and Description |
|---|
PojoPropertyAccessorProxyGetSize(PojoDescriptorDependencies dependencies,
PojoPropertyAccessorNonArg containerGetAccessor)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
PojoPropertyAccessorNonArgMode |
getMode()
This method gets the mode of this accessor.
|
Class<?> |
getPropertyClass()
|
GenericType<?> |
getPropertyType()
This method gets the
GenericType of this property. |
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)
This method invokes the according property-method of
pojoInstance with the given arguments. |
getDelegate, getDependenciesgetAccessibleObject, getAccessibleObjectName, getDeclaringClass, getModifiers, getNametoStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAccessibleObject, getAccessibleObjectName, getDeclaringClass, getModifiersgetNamepublic PojoPropertyAccessorProxyGetSize(PojoDescriptorDependencies dependencies, PojoPropertyAccessorNonArg containerGetAccessor)
dependencies - are the PojoDescriptorDependencies to use.containerGetAccessor - is the accessor delegate that gets an array, map or collection property.public PojoPropertyAccessorNonArgMode getMode()
getMode in interface PojoPropertyAccessorgetMode in interface PojoPropertyAccessorNonArggetMode in class AbstractPojoPropertyAccessorProxypublic GenericType<?> getPropertyType()
GenericType of this property. getter this will be the return-type while a setter typically has void as
return-type and this method will return the type of its argument. For mapped or
indexed getters/setters this method will return the item type.getPropertyType in interface PojoPropertyAccessorgetPropertyType in class AbstractPojoPropertyAccessorProxyGenericType reflecting the property.PojoPropertyAccessor.getPropertyClass(),
PropertyDescriptorpublic Class<?> getPropertyClass()
type as Class. It is a convenience method for
PojoPropertyAccessor.getPropertyType(). getRetrievalClass() if the
mode is for reading and
PojoPropertyAccessor.getPropertyType(). getAssignmentClass() otherwise.getPropertyClass in interface PojoPropertyAccessorgetPropertyClass in class AbstractPojoPropertyAccessorProxyClass reflecting the property.public GenericType<?> getReturnType()
GenericType of the object returned when this accessor is
invoked.getReturnType in interface PojoPropertyAccessorgetReturnType in class AbstractPojoPropertyAccessorProxyMethod.getGenericReturnType(),
Field.getGenericType()public Class<?> getReturnClass()
Class 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)
pojoInstance with the given arguments. invoke in interface PojoPropertyAccessorNonArgpojoInstance - 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.null if void (e.g. initialize method). For
a regular getter this will be the value of the property.Copyright © 2001–2015 mmm-Team. All rights reserved.