net.sf.mmm.util.pojo.descriptor.base
Class AbstractPojoPropertyDescriptor
java.lang.Object
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)
name
private final String name
- See Also:
getName()
AbstractPojoPropertyDescriptor
public AbstractPojoPropertyDescriptor(String propertyName)
- The constructor.
- Parameters:
propertyName - is the name of the property.
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.