本文整理了Java中org.oasis_open.docs.s_ramp.ns.s_ramp_v1.WsdlService
类的一些代码示例,展示了WsdlService
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WsdlService
类的具体详情如下:
包路径:org.oasis_open.docs.s_ramp.ns.s_ramp_v1.WsdlService
类名称:WsdlService
[英]Java class for WsdlService complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="WsdlService">
<complexContent>
<extension base="{http://docs.oasis-open.org/s-ramp/ns/s-ramp-v1.0}NamedWsdlDerivedArtifactType">
<sequence>
<element name="port" type="{http://docs.oasis-open.org/s-ramp/ns/s-ramp-v1.0}portTarget" maxOccurs="unbounded"/>
</sequence>
<anyAttribute/>
</extension>
</complexContent>
</complexType>
[中]WsdlService复杂类型的Java类。
以下架构片段指定了该类中包含的预期内容。
<complexType name="WsdlService">
<complexContent>
<extension base="{http://docs.oasis-open.org/s-ramp/ns/s-ramp-v1.0}NamedWsdlDerivedArtifactType">
<sequence>
<element name="port" type="{http://docs.oasis-open.org/s-ramp/ns/s-ramp-v1.0}portTarget" maxOccurs="unbounded"/>
</sequence>
<anyAttribute/>
</extension>
</complexContent>
</complexType>
代码示例来源: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.artificer/artificer-common
@Override
public void visit(WsdlService artifact) {
super.visit(artifact);
if (oldArtifact == null) {
verifyEmptyDerivedRelationships("port", artifact.getPort());
} else {
WsdlService castOld = (WsdlService) oldArtifact;
verifyUnchangedDerivedRelationships("port", artifact.getPort(), castOld.getPort());
}
}
代码示例来源:origin: org.overlord.sramp/s-ramp-common
Assert.assertNotNull(artifact);
Assert.assertEquals("SampleService", artifact.getName()); //$NON-NLS-1$
Assert.assertEquals("SampleService", ((WsdlService) artifact).getNCName()); //$NON-NLS-1$
Assert.assertEquals("http://ewittman.redhat.com/sample/2012/09/wsdl/sample.wsdl", ((WsdlService) artifact).getNamespace()); //$NON-NLS-1$
WsdlService service = (WsdlService) artifact;
Assert.assertEquals(1, service.getPort().size());
代码示例来源:origin: org.overlord.sramp/s-ramp-api
/**
* Create an instance of {@link WsdlService }
*
*/
public WsdlService createWsdlService() {
return new WsdlService();
}
代码示例来源:origin: org.artificer/artificer-repository-hibernate
/**
* @see org.artificer.common.visitors.HierarchicalArtifactVisitor#visit(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.WsdlService)
*/
@Override
public void visit(WsdlService artifact) {
super.visit(artifact);
try {
artifact.getPort().addAll(getRelationships(
"port", artificerArtifact, PortTarget.class));
} catch (Exception e) {
throw new RuntimeException(e);
}
}
代码示例来源:origin: org.overlord.sramp/s-ramp-common
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")) { //$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$
target.setValue(port.getUuid());
target.setArtifactType(PortEnum.PORT);
service.getPort().add(target);
代码示例来源:origin: org.overlord.sramp/s-ramp-repository-jcr
/**
* @see org.overlord.sramp.common.visitors.HierarchicalArtifactVisitorAdapter#visit(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.WsdlService)
*/
@Override
public void visit(WsdlService artifact) {
super.visit(artifact);
try {
artifact.getPort().addAll(getRelationships("port", PortTarget.class)); //$NON-NLS-1$
} catch (Exception e) {
throw new RuntimeException(e);
}
}
代码示例来源:origin: org.artificer/artificer-repository-hibernate
/**
* @see org.artificer.common.visitors.HierarchicalArtifactVisitor#visit(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.WsdlService)
*/
@Override
public void visit(WsdlService artifact) {
super.visit(artifact);
try {
setRelationships("port", RelationshipType.DERIVED, artifact.getPort());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
代码示例来源:origin: org.overlord.sramp/s-ramp-common
/**
* @see org.overlord.sramp.common.visitors.HierarchicalArtifactVisitorAdapter#visit(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.WsdlService)
*/
@Override
public void visit(WsdlService artifact) {
visitRelationships("port", artifact.getPort()); //$NON-NLS-1$
super.visit(artifact);
}
代码示例来源:origin: org.artificer/artificer-common
/**
* @see HierarchicalArtifactVisitor#visit(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.WsdlService)
*/
@Override
public void visit(WsdlService artifact) {
visitRelationships("port", artifact.getPort(), false);
super.visit(artifact);
}
代码示例来源:origin: org.overlord.sramp/s-ramp-repository-jcr
/**
* @see org.overlord.sramp.common.visitors.HierarchicalArtifactVisitorAdapter#visit(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.WsdlService)
*/
@Override
public void visit(WsdlService artifact) {
super.visit(artifact);
try {
setRelationships("port", -1, 1, PortEnum.PORT.toString(), false, artifact.getPort()); //$NON-NLS-1$
} catch (Exception e) {
throw new RuntimeException(e);
}
}
代码示例来源:origin: org.overlord.sramp/s-ramp-repository-jcr-modeshape
Assert.assertEquals(1, service.getPort().size());
Port port = (Port) getArtifactByTarget(service.getPort().get(0));
Assert.assertNotNull(port);
Binding b = (Binding) getArtifactByTarget(port.getBinding());
内容来源于网络,如有侵权,请联系作者删除!