本文整理了Java中org.oasis_open.docs.s_ramp.ns.s_ramp_v1.WsdlService.getPort()
方法的一些代码示例,展示了WsdlService.getPort()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WsdlService.getPort()
方法的具体详情如下:
包路径:org.oasis_open.docs.s_ramp.ns.s_ramp_v1.WsdlService
类名称:WsdlService
方法名:getPort
[英]Gets the value of the port property.
This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set
method for the port property.
For example, to add a new item, do as follows:
getPort().add(newItem);
Objects of the following type(s) are allowed in the list PortTarget
[中]获取端口属性的值。
此访问器方法返回对实时列表的引用,而不是快照。因此,对返回列表所做的任何修改都将出现在JAXB对象中。这就是为什么port属性没有set
方法的原因。
例如,要添加新项目,请执行以下操作:
getPort().add(newItem);
PortTarget列表中允许以下类型的对象
代码示例来源: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.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-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.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
target.setValue(port.getUuid());
target.setArtifactType(PortEnum.PORT);
service.getPort().add(target);
代码示例来源:origin: org.overlord.sramp/s-ramp-common
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-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());
内容来源于网络,如有侵权,请联系作者删除!