@Test public void toImport() { final String LOCATION = "location"; final String NAMESPACE = "namespace"; WSDLImport wsdlImport = new WSDLImport(LOCATION, NAMESPACE); Import imp = PropertyWriterUtils.toImport(wsdlImport); assertEquals(LOCATION, imp.getLocation()); assertEquals(NAMESPACE, imp.getNamespace()); }
public static Import toImport(WSDLImport wsdlImport) { Import imp = Bpmn2Factory.eINSTANCE.createImport(); imp.setImportType("http: imp.setLocation(wsdlImport.getLocation()); imp.setNamespace(wsdlImport.getNamespace()); return imp; }
PropertyWriterUtils { public static Import toImport(WSDLImport wsdlImport) { Import imp = Bpmn2Factory.eINSTANCE.createImport(); imp.setImportType("http: imp.setLocation(wsdlImport.getLocation()); imp.setNamespace(wsdlImport.getNamespace()); return imp; } }
PropertyWriterUtils { public static Import toImport(WSDLImport wsdlImport) { Import imp = Bpmn2Factory.eINSTANCE.createImport(); imp.setImportType("http: imp.setLocation(wsdlImport.getLocation()); imp.setNamespace(wsdlImport.getNamespace()); return imp; }  }
PropertyWriterUtils { public static Import toImport(WSDLImport wsdlImport) { Import imp = Bpmn2Factory.eINSTANCE.createImport(); imp.setImportType("http: imp.setLocation(wsdlImport.getLocation()); imp.setNamespace(wsdlImport.getNamespace()); return imp; }  static BPMNEdge createBPMNEdge(BasePropertyWriter source,
                                          BasePropertyWriter target,
                                          Connection sourceConnection,
                                          ControlPoint[] mid,
                                          Connection targetConnection); @SuppressWarnings("unchecked") static Optional<Node<View, Edge>> getDockSourceNode(final Node<? extends View, ?> node); static Import toImport(WSDLImport wsdlImport); }
PropertyWriterUtils { public static Import toImport(WSDLImport wsdlImport) { Import imp = Bpmn2Factory.eINSTANCE.createImport(); imp.setImportType("http: imp.setLocation(wsdlImport.getLocation()); imp.setNamespace(wsdlImport.getNamespace()); return imp; }  static BPMNEdge createBPMNEdge(BasePropertyWriter source,
                                          BasePropertyWriter target,
                                          Connection sourceConnection,
                                          ControlPoint[] mid,
                                          Connection targetConnection); @SuppressWarnings("unchecked") static Optional<Node<View, Edge>> getDockSourceNode(final Node<? extends View, ?> node); static Import toImport(WSDLImport wsdlImport);  }