net.sf.beanlib.provider
Class JavaBeanPopulatableSupport
java.lang.Object
net.sf.beanlib.provider.JavaBeanPopulatableSupport
- All Implemented Interfaces:
- DetailedBeanPopulatable
public class JavaBeanPopulatableSupport
- extends Object
- implements DetailedBeanPopulatable
Default implementation of DetailedBeanPopulatable
.
- Author:
- Joe D. Velopar
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
inst
public static final JavaBeanPopulatableSupport inst
JavaBeanPopulatableSupport
private JavaBeanPopulatableSupport()
shouldPopulate
public boolean shouldPopulate(String propertyName,
Object fromBean,
Method readerMethod,
Object toBean,
Method setterMethod)
- Description copied from interface:
DetailedBeanPopulatable
- Returns true if the given JavaBean property should be populated;
false otherwise.
- Specified by:
shouldPopulate
in interface DetailedBeanPopulatable
- 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.