@Test public void testDmnFromWBWhenWBIsNull() { final InformationItemPrimary wb = null; final InformationItem informationItem = InformationItemPrimaryPropertyConverter.dmnFromWB(wb, wb); assertNull(informationItem); }
public static TInformationItem dmnFromWB(final InformationItemPrimary wb, final DMNModelInstrumentedBase parent) { if (wb == null) { return null; } final TInformationItem result = new TInformationItem(); final QName typeRef = wb.getTypeRef(); result.setId(wb.getId().getValue()); result.setName(getParentName(parent)); QNamePropertyConverter.setDMNfromWB(typeRef, result::setTypeRef); return result; }
InformationItemPrimaryPropertyConverter { public static TInformationItem dmnFromWB(final InformationItemPrimary wb, final DMNModelInstrumentedBase parent) { if (wb == null) { return null; } final TInformationItem result = new TInformationItem(); final QName typeRef = wb.getTypeRef(); result.setId(wb.getId().getValue()); result.setName(getParentName(parent)); QNamePropertyConverter.setDMNfromWB(typeRef, result::setTypeRef); return result; } }
InformationItemPrimaryPropertyConverter { public static TInformationItem dmnFromWB(final InformationItemPrimary wb, final DMNModelInstrumentedBase parent) { if (wb == null) { return null; } final TInformationItem result = new TInformationItem(); final QName typeRef = wb.getTypeRef(); result.setId(wb.getId().getValue()); result.setName(getParentName(parent)); QNamePropertyConverter.setDMNfromWB(typeRef, result::setTypeRef); return result; }  }
InformationItemPrimaryPropertyConverter { public static TInformationItem dmnFromWB(final InformationItemPrimary wb, final DMNModelInstrumentedBase parent) { if (wb == null) { return null; } final TInformationItem result = new TInformationItem(); final QName typeRef = wb.getTypeRef(); result.setId(wb.getId().getValue()); result.setName(getParentName(parent)); QNamePropertyConverter.setDMNfromWB(typeRef, result::setTypeRef); return result; }  static InformationItemPrimary wbFromDMN(final InformationItem dmn,
                                                   final org.kie.dmn.model.api.DMNModelInstrumentedBase parent); static TInformationItem dmnFromWB(final InformationItemPrimary wb,
                                             final DMNModelInstrumentedBase parent); }
InformationItemPrimaryPropertyConverter { public static TInformationItem dmnFromWB(final InformationItemPrimary wb, final DMNModelInstrumentedBase parent) { if (wb == null) { return null; } final TInformationItem result = new TInformationItem(); final QName typeRef = wb.getTypeRef(); result.setId(wb.getId().getValue()); result.setName(getParentName(parent)); QNamePropertyConverter.setDMNfromWB(typeRef, result::setTypeRef); return result; }  static InformationItemPrimary wbFromDMN(final InformationItem dmn,
                                                   final org.kie.dmn.model.api.DMNModelInstrumentedBase parent); static TInformationItem dmnFromWB(final InformationItemPrimary wb,
                                             final DMNModelInstrumentedBase parent);  }