net.ibizsys.model.util.merger.app.dataentity.PSAppDEMethodMerger Maven / Gradle / Ivy
package net.ibizsys.model.util.merger.app.dataentity;
import com.fasterxml.jackson.databind.node.ObjectNode;
import net.ibizsys.model.util.merger.IPSModelListMerger;
import net.ibizsys.model.util.merger.IPSModelMergeContext;
import net.ibizsys.model.util.merger.PSModelMergerFactory;
import static net.ibizsys.model.app.dataentity.PSAppDEMethodImpl.*;
public class PSAppDEMethodMerger extends net.ibizsys.model.util.merger.PSModelMergerBase{
@Override
protected boolean isEnableMergeChild(IPSModelMergeContext iPSModelMergeContext, String strFieldName) {
Boolean ret = iPSModelMergeContext.isEnableMergeChild(net.ibizsys.model.app.dataentity.PSAppDEMethodImpl.class, strFieldName);
return (ret != null)?ret:super.isEnableMergeChild(iPSModelMergeContext, strFieldName);
}
@Override
protected void onMerge(IPSModelMergeContext iPSModelMergeContext, ObjectNode objectNode, ObjectNode mergeObjectNode) throws Exception {
if(isEnableMergeChild(iPSModelMergeContext, ATTR_GETADPSDEDQCONDITIONS)){
IPSModelListMerger iPSModelListMerger = iPSModelMergeContext.getPSModelListMerger(net.ibizsys.model.dataentity.ds.IPSDEDQCondition.class, true);
if(iPSModelListMerger != null){
iPSModelListMerger.merge(iPSModelMergeContext, objectNode, mergeObjectNode, ATTR_GETADPSDEDQCONDITIONS);
}
}
if(isEnableMergeChild(iPSModelMergeContext, ATTR_GETPSAPPDEMETHODINPUT)){
IPSModelListMerger iPSModelListMerger = iPSModelMergeContext.getPSModelListMerger(net.ibizsys.model.app.dataentity.IPSAppDEMethodInput.class, true);
if(iPSModelListMerger != null){
iPSModelListMerger.mergeSingle(iPSModelMergeContext, objectNode, mergeObjectNode, ATTR_GETPSAPPDEMETHODINPUT);
}
}
if(isEnableMergeChild(iPSModelMergeContext, ATTR_GETPSAPPDEMETHODRETURN)){
IPSModelListMerger iPSModelListMerger = iPSModelMergeContext.getPSModelListMerger(net.ibizsys.model.app.dataentity.IPSAppDEMethodReturn.class, true);
if(iPSModelListMerger != null){
iPSModelListMerger.mergeSingle(iPSModelMergeContext, objectNode, mergeObjectNode, ATTR_GETPSAPPDEMETHODRETURN);
}
}
if(isEnableMergeChild(iPSModelMergeContext, ATTR_GETPSDEDQGROUPCONDITIONS)){
IPSModelListMerger iPSModelListMerger = iPSModelMergeContext.getPSModelListMerger(net.ibizsys.model.dataentity.ds.IPSDEDQGroupCondition.class, true);
if(iPSModelListMerger != null){
iPSModelListMerger.merge(iPSModelMergeContext, objectNode, mergeObjectNode, ATTR_GETPSDEDQGROUPCONDITIONS);
}
}
if(isEnableMergeChild(iPSModelMergeContext, ATTR_GETREQUESTFULLPATHS)){
IPSModelListMerger iPSModelListMerger = iPSModelMergeContext.getPSModelListMerger(java.lang.String.class, true);
if(iPSModelListMerger != null){
iPSModelListMerger.merge(iPSModelMergeContext, objectNode, mergeObjectNode, ATTR_GETREQUESTFULLPATHS);
}
}
super.onMerge(iPSModelMergeContext, objectNode, mergeObjectNode);
}
}