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

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

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

WsdlDocument.getImportedWsdls介绍

[英]Gets the value of the importedWsdls 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 importedWsdls property.

For example, to add a new item, do as follows:

getImportedWsdls().add(newItem);

Objects of the following type(s) are allowed in the list WsdlDocumentTarget
[中]获取importedWsdls属性的值。
此访问器方法返回对实时列表的引用,而不是快照。因此,对返回列表所做的任何修改都将出现在JAXB对象中。这就是为什么importedWsdls属性没有set方法的原因。
例如,要添加新项目,请执行以下操作:

getImportedWsdls().add(newItem);

WsdlDocumentTarget列表中允许以下类型的对象

代码示例

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

private void processWsdlImports() throws XPathExpressionException {
  WsdlDocument wsdlDocument;
  if (getPrimaryArtifact() instanceof WsdlDocument) {
    wsdlDocument = (WsdlDocument) getPrimaryArtifact();
  } else {
    return;
  }
  
  NodeList nodes = (NodeList) this.query(rootElement, ".//wsdl:import", XPathConstants.NODESET);
  for (int idx = 0; idx < nodes.getLength(); idx++) {
    Element node = (Element) nodes.item(idx);
    if (node.hasAttribute("namespace")) {
      String namespace = node.getAttribute("namespace");
      String location = node.getAttribute("location");
      stripPath(location);
      WsdlDocument wsdlDocumentRef = derivedArtifacts.lookupWsdlDocument(namespace);
      WsdlDocumentTarget wsdlDocumentTarget = new WsdlDocumentTarget();
      wsdlDocumentTarget.setArtifactType(WsdlDocumentEnum.WSDL_DOCUMENT);
      if (wsdlDocumentRef != null) {
        wsdlDocumentTarget.setValue(wsdlDocumentRef.getUuid());
      } else {
        relationshipSources.add(new NamespaceRelationshipSource(namespace, location, wsdlDocumentTarget,
            wsdlDocument.getImportedWsdls(), ArtifactTypeEnum.WsdlDocument.getModel(),
            ArtifactTypeEnum.WsdlDocument.getType()));
      }
      wsdlDocument.getImportedWsdls().add(wsdlDocumentTarget);
    }
  }
}

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

/**
 * @see org.artificer.common.visitors.HierarchicalArtifactVisitor#visit(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.WsdlDocument)
 */
@Override
public void visit(WsdlDocument artifact) {
  super.visit(artifact);
  artifact.setTargetNamespace(getProperty("targetNamespace"));
  try {
    artifact.getImportedXsds().addAll(getRelationships(
        "importedXsds", artificerArtifact, XsdDocumentTarget.class));
    artifact.getIncludedXsds().addAll(getRelationships(
        "includedXsds", artificerArtifact, XsdDocumentTarget.class));
    artifact.getRedefinedXsds().addAll(getRelationships(
        "redefinedXsds", artificerArtifact, XsdDocumentTarget.class));
    artifact.getImportedWsdls().addAll(getRelationships(
        "importedWsdls", artificerArtifact, WsdlDocumentTarget.class));
  } catch (Exception e) {
    throw new RuntimeException(e);
  }
}

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

@Override
public void visit(WsdlDocument artifact) {
  super.visit(artifact);
  if (oldArtifact == null) {
    verifyEmptyDerivedRelationships("importedXsds", artifact.getImportedXsds());
    verifyEmptyDerivedRelationships("includedXsds", artifact.getIncludedXsds());
    verifyEmptyDerivedRelationships("redefinedXsds", artifact.getRedefinedXsds());
    verifyEmptyDerivedRelationships("importedWsdls", artifact.getImportedWsdls());
  } else {
    WsdlDocument castOld = (WsdlDocument) oldArtifact;
    verifyUnchangedDerivedRelationships("importedXsds", artifact.getImportedXsds(), castOld.getImportedXsds());
    verifyUnchangedDerivedRelationships("includedXsds", artifact.getIncludedXsds(), castOld.getIncludedXsds());
    verifyUnchangedDerivedRelationships("redefinedXsds", artifact.getRedefinedXsds(), castOld.getRedefinedXsds());
    verifyUnchangedDerivedRelationships("importedWsdls", artifact.getImportedWsdls(), castOld.getImportedWsdls());
  }
}

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

/**
 * @see HierarchicalArtifactVisitor#visit(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.WsdlDocument)
 */
@Override
public void visit(WsdlDocument artifact) {
  visitRelationships("importedXsds", artifact.getImportedXsds(), false);
  visitRelationships("includedXsds", artifact.getIncludedXsds(), false);
  visitRelationships("redefinedXsds", artifact.getRedefinedXsds(), false);
  visitRelationships("importedWsdls", artifact.getImportedWsdls(), false);
  super.visit(artifact);
}

代码示例来源: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.WsdlDocument)
 */
@Override
public void visit(WsdlDocument artifact) {
  visitRelationships("importedXsds", artifact.getImportedXsds()); //$NON-NLS-1$
  visitRelationships("includedXsds", artifact.getIncludedXsds()); //$NON-NLS-1$
  visitRelationships("redefinedXsds", artifact.getRedefinedXsds()); //$NON-NLS-1$
  visitRelationships("importedWsdls", artifact.getImportedWsdls()); //$NON-NLS-1$
  super.visit(artifact);
}

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

/**
 * @see org.artificer.common.visitors.HierarchicalArtifactVisitor#visit(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.WsdlDocument)
 */
@Override
public void visit(WsdlDocument artifact) {
  super.visit(artifact);
  try {
    setRelationships("importedXsds", RelationshipType.MODELED, artifact.getImportedXsds());
    setRelationships("includedXsds", RelationshipType.MODELED, artifact.getIncludedXsds());
    setRelationships("redefinedXsds", RelationshipType.MODELED, artifact.getRedefinedXsds());
    setRelationships("importedWsdls", RelationshipType.MODELED, artifact.getImportedWsdls());
  } catch (Exception e) {
    error = e;
  }
}

相关文章