net.sf.mmm.util.pojo.descriptor.base
Class AbstractPojoPropertyDescriptor

java.lang.Object
  extended by net.sf.mmm.util.pojo.descriptor.base.AbstractPojoPropertyDescriptor
All Implemented Interfaces:
PojoAttributeName, PojoPropertyDescriptor
Direct Known Subclasses:
PojoPropertyDescriptorImpl

public abstract class AbstractPojoPropertyDescriptor
extends Object
implements PojoPropertyDescriptor

This is the abstract base implementation of the PojoPropertyDescriptor interface.

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

Field Summary
private  String name
           
 
Constructor Summary
AbstractPojoPropertyDescriptor(String propertyName)
          The constructor.
 
Method Summary
 String getName()
          This method gets the programmatic (technical) name of the according property.
abstract  PojoPropertyAccessor putAccessor(PojoPropertyAccessor accessor)
          This method puts the given accessor into this property-descriptor.
 String 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.PojoPropertyDescriptor
getAccessor, getAccessors
 

Field Detail

name

private final String name
See Also:
getName()
Constructor Detail

AbstractPojoPropertyDescriptor

public AbstractPojoPropertyDescriptor(String propertyName)
The constructor.

Parameters:
propertyName - is the name of the property.
Method Detail

getName

public String getName()
This method gets the programmatic (technical) name of the according property.
E.g. for the read accessor public String getFooBar() the property name would be fooBar.

Specified by:
getName in interface PojoAttributeName
Returns:
the property name.
See Also:
PropertyDescriptor

putAccessor

public abstract PojoPropertyAccessor putAccessor(PojoPropertyAccessor accessor)
This method puts the given accessor into this property-descriptor.
ATTENTION:
Be careful NOT to accidently replace existing accessors.

Parameters:
accessor - is the accessor to add.
Returns:
the PojoPropertyAccessor with the same mode as the given accessor that has been replaced by accessor or null if none has been replaced.
See Also:
PojoPropertyDescriptor.getAccessor(net.sf.mmm.util.pojo.descriptor.api.accessor.PojoPropertyAccessorMode)

toString

public String toString()

Overrides:
toString in class Object


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