net.sf.beanlib.spi
Interface DetailedBeanPopulatable
- All Known Implementing Classes:
- JavaBeanPopulatableSupport
public interface DetailedBeanPopulatable
Used to control if a JavaBean property should be populated.
- Author:
- Joe D. Velopar
ALWAYS_POPULATE
static final DetailedBeanPopulatable ALWAYS_POPULATE
JAVABEAN_POPULATE
static final DetailedBeanPopulatable JAVABEAN_POPULATE
shouldPopulate
boolean shouldPopulate(String propertyName,
Object fromBean,
Method readerMethod,
Object toBean,
Method setterMethod)
- Returns true if the given JavaBean property should be populated;
false otherwise.
- Parameters:
propertyName
- JavaBean property name.fromBean
- from bean.readerMethod
- reader method of the JavaBean property name.toBean
- to bean.setterMethod
- setter method of the JavaBean property name.
- Returns:
- true if the given JavaBean property should be populated.