net.sf.mmm.util.pojo.descriptor.base.accessor
Class AbstractPojoPropertyAccessorBase
java.lang.Object
net.sf.mmm.util.pojo.descriptor.base.accessor.AbstractPojoPropertyAccessor
net.sf.mmm.util.pojo.descriptor.base.accessor.AbstractPojoPropertyAccessorBase
- All Implemented Interfaces:
- PojoPropertyAccessor, PojoAttributeName
- Direct Known Subclasses:
- AbstractPojoPropertyAccessorField, AbstractPojoPropertyAccessorMethod
public abstract class AbstractPojoPropertyAccessorBase
- extends AbstractPojoPropertyAccessor
This is the major base-implementation of the
PojoPropertyAccessor
interface.
- Since:
- 2.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
name
private final String name
- See Also:
getName()
propertyType
private final GenericType<?> propertyType
- See Also:
getPropertyType()
AbstractPojoPropertyAccessorBase
public AbstractPojoPropertyAccessorBase(String propertyName,
Type propertyType,
PojoDescriptor<?> descriptor,
PojoDescriptorDependencies configuration)
- The constructor.
- Parameters:
propertyName - is the name of the property.propertyType - is the generic type of the
property.descriptor - is the descriptor this accessor is intended for.configuration - are the PojoDescriptorDependencies to use.
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.
- Returns:
- the property name.
- See Also:
PropertyDescriptor
getPropertyType
public GenericType<?> getPropertyType()
- This method gets the
GenericType of this property.
For a 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.
- Returns:
- the
GenericType reflecting the property. - See Also:
PojoPropertyAccessor.getPropertyClass(),
PropertyDescriptor
Copyright © 2001-2010 mmm-Team. All Rights Reserved.