assertEquals(tmIn.getName().getLang(), tmOut.getName().getLang()); assertEquals(tmIn.getName().getValue(), tmOut.getName().getValue()); TckValidator.checkDescriptions(tmIn.getDescription(), tmOut.getDescription()); TckValidator.checkCategories(tmIn.getCategoryBag(), tmOut.getCategoryBag());
public static org.uddi.api_v3.TModel MapTModel(org.uddi.api_v2.TModel be) { if (be == null) { return null; } TModel item = new org.uddi.api_v3.TModel(); item.setTModelKey(be.getTModelKey()); item.setName(new Name(be.getName().getValue(), be.getName().getLang())); item.setCategoryBag(MapCategoryBag(be.getCategoryBag())); item.setIdentifierBag(MapIdentBag(be.getIdentifierBag())); item.getDescription().addAll(MapDescription(be.getDescription())); OverviewDoc MapOverviewDoc = MapOverviewDoc(be.getOverviewDoc()); if (MapOverviewDoc != null) { item.getOverviewDoc().add(MapOverviewDoc); } return item; }
public static org.uddi.api_v2.TModel MapTModel(org.uddi.api_v3.TModel be) { if (be == null) { return null; } TModel item = new org.uddi.api_v2.TModel(); item.setTModelKey(be.getTModelKey()); item.setName(new Name(be.getName().getValue(), be.getName().getLang())); item.setCategoryBag(MapCategoryBag(be.getCategoryBag())); item.getDescription().addAll(MapDescription(be.getDescription())); item.setIdentifierBag(MapIdentBag(be.getIdentifierBag())); item.setOverviewDoc(MapOverviewDoc(be.getOverviewDoc())); return item; }