cn.featherfly.common.bean.rule.CopyRuleIgnoreCaseNull Maven / Gradle / Ivy
The newest version!
package cn.featherfly.common.bean.rule;
/**
*
* 如果复制源属性值为null则不复制
*
*
* @author zhongj
*/
public class CopyRuleIgnoreCaseNull implements CopyRule{
/**
*
*/
public CopyRuleIgnoreCaseNull() {
}
/**
* {@inheritDoc}
*/
@Override
public boolean isCopyEnabled(Object target, Object from, String propertyName, Object propertyValue) {
if (propertyValue == null) {
return false;
}
return true;
}
}