net.sf.mmm.util.pojo.descriptor.api
Interface PojoPropertyDescriptor

All Superinterfaces:
PojoAttributeName
All Known Implementing Classes:
AbstractPojoPropertyDescriptor, PojoPropertyDescriptorImpl

public interface PojoPropertyDescriptor
extends PojoAttributeName

This interface represents a property of a Pojo. A property is some attribute of a Pojo that can be accessed directly via a Field or via a Method (getter, setter, etc.). This PojoPropertyDescriptor is an alternative to PropertyDescriptor but only has focus on reflectively accessing objects. Therefore it works on any Pojo.

Since:
1.1.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Method Summary
<ACCESSOR extends PojoPropertyAccessor>
ACCESSOR
getAccessor(PojoPropertyAccessorMode<ACCESSOR> mode)
          This method gets the accessor to access the represented property in the way given by mode.
 Collection<? extends PojoPropertyAccessor> getAccessors()
          This method gets all available accessors for the represented property.
 
Methods inherited from interface net.sf.mmm.util.pojo.descriptor.api.attribute.PojoAttributeName
getName
 

Method Detail

getAccessor

<ACCESSOR extends PojoPropertyAccessor> ACCESSOR getAccessor(PojoPropertyAccessorMode<ACCESSOR> mode)
This method gets the accessor to access the represented property in the way given by mode.

Type Parameters:
ACCESSOR - is the type of the requested accessor.
Parameters:
mode - is the mode of the requested accessor.
Returns:
the accessor for the given mode or null if no such accessor exists.

getAccessors

Collection<? extends PojoPropertyAccessor> getAccessors()
This method gets all available accessors for the represented property.

Returns:
a collection with all property descriptors


Copyright © 2001-2010 mmm-Team. All Rights Reserved.