org.oasis_open.docs.s_ramp.ns.s_ramp_v1.WsdlService.setName()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(98)

本文整理了Java中org.oasis_open.docs.s_ramp.ns.s_ramp_v1.WsdlService.setName()方法的一些代码示例,展示了WsdlService.setName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WsdlService.setName()方法的具体详情如下:
包路径:org.oasis_open.docs.s_ramp.ns.s_ramp_v1.WsdlService
类名称:WsdlService
方法名:setName

WsdlService.setName介绍

暂无

代码示例

代码示例来源:origin: org.artificer/artificer-integration

private void processServices() throws XPathExpressionException {
  // Get all the bindings and add them to the list
  NodeList services = (NodeList) this.query(rootElement, "./wsdl:service", XPathConstants.NODESET);
  for (int idx = 0; idx < services.getLength(); idx++) {
    Element serviceElem = (Element) services.item(idx);
    WsdlService service = new WsdlService();
    service.setUuid(UUID.randomUUID().toString());
    service.setArtifactType(BaseArtifactEnum.WSDL_SERVICE);
    service.setNamespace(targetNS);
    if (serviceElem.hasAttribute("name")) {
      String name = serviceElem.getAttribute("name");
      service.setName(name);
      service.setNCName(name);
    } else {
      service.setName("wsdl:service");
    }
    derivedArtifacts.add(service);
    Collection<Port> ports = processPorts(serviceElem);
    for (Port port : ports) {
      PortTarget target = new PortTarget();
      target.setValue(port.getUuid());
      target.setArtifactType(PortEnum.PORT);
      service.getPort().add(target);
    }
  }
}

代码示例来源:origin: org.overlord.sramp/s-ramp-common

if (serviceElem.hasAttribute("name")) { //$NON-NLS-1$
  String name = serviceElem.getAttribute("name"); //$NON-NLS-1$
  service.setName(name);
  service.setNCName(name);
} else {
  service.setName("wsdl:service"); //$NON-NLS-1$

相关文章