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

Field Summary
static DetailedBeanPopulatable ALWAYS_POPULATE
           
static DetailedBeanPopulatable JAVABEAN_POPULATE
           
 
Method Summary
 boolean shouldPopulate(String propertyName, Object fromBean, Method readerMethod, Object toBean, Method setterMethod)
          Returns true if the given JavaBean property should be populated; false otherwise.
 

Field Detail

ALWAYS_POPULATE

static final DetailedBeanPopulatable ALWAYS_POPULATE

JAVABEAN_POPULATE

static final DetailedBeanPopulatable JAVABEAN_POPULATE
Method Detail

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.