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

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

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

WsdlDocument.getRedefinedXsds介绍

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

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

getRedefinedXsds().add(newItem);

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

getRedefinedXsds().add(newItem);

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

代码示例

代码示例来源: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-integration

@Override
protected void derive() throws IOException {
  targetNS = rootElement.getAttribute("targetNamespace");
  
  if (getPrimaryArtifact() instanceof WsdlDocument) {
    ((WsdlDocument) getPrimaryArtifact()).setTargetNamespace(targetNS);
  }
  
  try {
    // Get derived content from all of the schemas embedded in this WSDL
    NodeList schemas = (NodeList) this.query(rootElement, "./wsdl:types/xsd:schema", XPathConstants.NODESET);
    for (int idx = 0; idx < schemas.getLength(); idx++) {
      Element schema = (Element) schemas.item(idx);
      
      deriveXsd(schema);
      String xsdTargetNS = schema.getAttribute("targetNamespace");
      processImportedXsds(((WsdlDocument) getPrimaryArtifact()).getImportedXsds(), schema, xsdTargetNS);
      processIncludedXsds(((WsdlDocument) getPrimaryArtifact()).getIncludedXsds(), schema, xsdTargetNS);
      processRedefinedXsds(((WsdlDocument) getPrimaryArtifact()).getRedefinedXsds(), schema, xsdTargetNS);
    }
    
    processWsdlImports();
    processMessages();
    processPortTypes();
    processBindings();
    processServices();
  } catch (Exception e) {
    throw new IOException(e);
  }
}

代码示例来源: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;
  }
}

相关文章