|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmm.util.pojo.descriptor.base.accessor.AbstractPojoPropertyAccessor
net.sf.mmm.util.pojo.descriptor.base.accessor.AbstractPojoPropertyAccessorProxy
net.sf.mmm.util.pojo.descriptor.base.accessor.AbstractPojoPropertyAccessorProxyAdapter
net.sf.mmm.util.pojo.descriptor.impl.accessor.PojoPropertyAccessorProxyGetSize
public class PojoPropertyAccessorProxyGetSize
This is the implementation of the PojoPropertyAccessorNonArg
interface for getting the size of
an array, List or Map from another
accessor.
| Constructor Summary | |
|---|---|
PojoPropertyAccessorProxyGetSize(PojoDescriptorDependencies dependencies,
PojoPropertyAccessorNonArg containerGetAccessor)
The constructor. |
|
| Method Summary | |
|---|---|
PojoPropertyAccessorNonArgMode |
getMode()
This method gets the mode of this accessor. |
Class<?> |
getPropertyClass()
This method gets the type as Class. |
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. |
| Methods inherited from class net.sf.mmm.util.pojo.descriptor.base.accessor.AbstractPojoPropertyAccessorProxyAdapter |
|---|
getDelegate, getDependencies |
| Methods inherited from class net.sf.mmm.util.pojo.descriptor.base.accessor.AbstractPojoPropertyAccessorProxy |
|---|
getAccessibleObject, getDeclaringClass, getModifiers, getName |
| Methods inherited from class net.sf.mmm.util.pojo.descriptor.base.accessor.AbstractPojoPropertyAccessor |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.sf.mmm.util.pojo.descriptor.api.accessor.PojoPropertyAccessor |
|---|
getAccessibleObject, getDeclaringClass, getModifiers |
| Methods inherited from interface net.sf.mmm.util.pojo.descriptor.api.attribute.PojoAttributeName |
|---|
getName |
| Constructor Detail |
|---|
public PojoPropertyAccessorProxyGetSize(PojoDescriptorDependencies dependencies,
PojoPropertyAccessorNonArg containerGetAccessor)
dependencies - are the PojoDescriptorDependencies to use.containerGetAccessor - is the accessor delegate that gets an array,
map or collection property.| Method Detail |
|---|
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().
getUpperBound() if the
mode is for reading and PojoPropertyAccessor.getPropertyType().
getLowerBound() 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().
getUpperBound()
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||