net.sf.beanlib.spi
Interface DetailedPropertyFilter

All Known Implementing Classes:
JavaBeanDetailedPropertyFilter

public interface DetailedPropertyFilter

Used to control if a property should be propagated.

Author:
Joe D. Velopar

Field Summary
static DetailedPropertyFilter ALWAYS_PROPAGATE
           
static DetailedPropertyFilter JAVABEAN_PROPAGATE
           
 
Method Summary
 boolean propagate(String propertyName, Object fromBean, Method readerMethod, Object toBean, Method setterMethod)
          Returns true if the given property should be propagated; false otherwise.
 

Field Detail

ALWAYS_PROPAGATE

static final DetailedPropertyFilter ALWAYS_PROPAGATE

JAVABEAN_PROPAGATE

static final DetailedPropertyFilter JAVABEAN_PROPAGATE
Method Detail

propagate

boolean propagate(String propertyName,
                  Object fromBean,
                  Method readerMethod,
                  Object toBean,
                  Method setterMethod)
Returns true if the given property should be propagated; false otherwise.

Parameters:
propertyName - property name.
fromBean - from bean.
readerMethod - reader method of the property name.
toBean - to bean.
setterMethod - setter method of the property name.
Returns:
true if the given property should be propagated.