gpt4 book ai didi

org.apache.tuscany.sca.xsd.XSDefinition.setUnresolved()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-26 21:39:05 27 4
gpt4 key购买 nike

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

XSDefinition.setUnresolved介绍

暂无

代码示例

代码示例来源:origin: org.apache.tuscany.sca/tuscany-xsd

protected XSDefinition indexRead(URL doc) throws Exception {
    XSDefinition xsd = factory.createXSDefinition();
    xsd.setUnresolved(true);
    xsd.setNamespace(helper.readAttribute(doc, XSD, "targetNamespace"));
    xsd.setLocation(doc.toURI());
    xsd.setUnresolved(false);
    return xsd;
  }
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

protected XSDefinition indexRead(URL doc) throws Exception {
    XSDefinition xsd = factory.createXSDefinition();
    xsd.setUnresolved(true);
    xsd.setNamespace(helper.readAttribute(doc, XSD, "targetNamespace"));
    xsd.setLocation(doc.toURI());
    xsd.setUnresolved(false);
    return xsd;
  }
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

private void generateSchemas(List<XSDefinition> definitions, XSDFactory factory, JAXBContext context)
  throws IOException {
  DOMResolverImpl resolver = new DOMResolverImpl();
  context.generateSchema(resolver);
  Map<String, DOMResult> results = resolver.getResults();
  for (Map.Entry<String, DOMResult> entry : results.entrySet()) {
    XSDefinition definition = factory.createXSDefinition();
    definition.setUnresolved(true);
    definition.setDocument((Document)entry.getValue().getNode());
    definition.setNamespace(entry.getKey());
    URI location = null;
    try {
      location = new URI(entry.getValue().getSystemId());
    } catch (URISyntaxException e) {
      // ignore: use null value
    }    
    definition.setLocation(location);
    definitions.add(definition);
  }
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-databinding-jaxb

private void generateSchemas(List<XSDefinition> definitions, XSDFactory factory, JAXBContext context)
  throws IOException {
  DOMResolverImpl resolver = new DOMResolverImpl();
  context.generateSchema(resolver);
  Map<String, DOMResult> results = resolver.getResults();
  for (Map.Entry<String, DOMResult> entry : results.entrySet()) {
    XSDefinition definition = factory.createXSDefinition();
    definition.setUnresolved(true);
    definition.setDocument((Document)entry.getValue().getNode());
    definition.setNamespace(entry.getKey());
    URI location = null;
    try {
      location = new URI(entry.getValue().getSystemId());
    } catch (URISyntaxException e) {
      // ignore: use null value
    }    
    definition.setLocation(location);
    definitions.add(definition);
  }
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

private XmlSchemaType getType(QName typeName) {
  XmlSchemaType type = wsdlDefinition.getXmlSchemaType(typeName);
  if (type == null) {
    XSDefinition definition = xsdFactory.createXSDefinition();
    definition.setUnresolved(true);
    definition.setNamespace(typeName.getNamespaceURI());
    definition = resolver.resolveModel(XSDefinition.class, definition, context);
    if (definition.getSchema() != null) {
      type = definition.getSchema().getTypeByName(typeName);
    }
  }
  return type;
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-interface-wsdl

private XmlSchemaType getType(QName typeName) {
  XmlSchemaType type = wsdlDefinition.getXmlSchemaType(typeName);
  if (type == null) {
    XSDefinition definition = xsdFactory.createXSDefinition();
    definition.setUnresolved(true);
    definition.setNamespace(typeName.getNamespaceURI());
    definition = resolver.resolveModel(XSDefinition.class, definition, context);
    if (definition.getSchema() != null) {
      type = definition.getSchema().getTypeByName(typeName);
    }
  }
  return type;
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

private XmlSchemaElement getElement(QName elementName) {
  XmlSchemaElement element = wsdlDefinition.getXmlSchemaElement(elementName);
  if (element == null) {
    XSDefinition definition = xsdFactory.createXSDefinition();
    definition.setUnresolved(true);
    definition.setNamespace(elementName.getNamespaceURI());
    definition = resolver.resolveModel(XSDefinition.class, definition, context);
    if (definition.getSchema() != null) {
      element = definition.getSchema().getElementByName(elementName);
    }
  }
  return element;
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-interface-wsdl

private XmlSchemaElement getElement(QName elementName) {
  XmlSchemaElement element = wsdlDefinition.getXmlSchemaElement(elementName);
  if (element == null) {
    XSDefinition definition = xsdFactory.createXSDefinition();
    definition.setUnresolved(true);
    definition.setNamespace(elementName.getNamespaceURI());
    definition = resolver.resolveModel(XSDefinition.class, definition, context);
    if (definition.getSchema() != null) {
      element = definition.getSchema().getElementByName(elementName);
    }
  }
  return element;
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-interface-wsdl

for (String tns : attr2.getValues()) {
  XSDefinition xsd = xsdFactory.createXSDefinition();
  xsd.setUnresolved(true);
  xsd.setNamespace(tns);
  xsd.setLocation(URI.create(doc.toURI() + "#" + index));
  index++;
  xsd.setUnresolved(false);
  xsd.setSchema(null);
  wsdlDefinition.getXmlSchemas().add(xsd);
  xsd.setUnresolved(true);
  xsd.setNamespace("http://www.w3.org/2001/XMLSchema");
  xsd.setUnresolved(false);
  xsd.setSchema(null);
  wsdlDefinition.getXmlSchemas().add(xsd);

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

for (String tns : attr2.getValues()) {
  XSDefinition xsd = xsdFactory.createXSDefinition();
  xsd.setUnresolved(true);
  xsd.setNamespace(tns);
  xsd.setLocation(URI.create(doc.toURI() + "#" + index));
  index++;
  xsd.setUnresolved(false);
  xsd.setSchema(null);
  wsdlDefinition.getXmlSchemas().add(xsd);
  xsd.setUnresolved(true);
  xsd.setNamespace("http://www.w3.org/2001/XMLSchema");
  xsd.setUnresolved(false);
  xsd.setSchema(null);
  wsdlDefinition.getXmlSchemas().add(xsd);

代码示例来源:origin: org.apache.tuscany.sca/tuscany-xsd

definition.setUnresolved(false);

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

definition.setUnresolved(false);

代码示例来源:origin: org.apache.tuscany.sca/tuscany-assembly-xml

property.getXSDType().getNamespaceURI().equals("http://www.w3.org/2001/XMLSchema") != true){
XSDefinition xsdDefinition = xsdFactory.createXSDefinition();
xsdDefinition.setUnresolved(true);
xsdDefinition.setNamespace(property.getXSDType().getNamespaceURI());

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

property.getXSDType().getNamespaceURI().equals("http://www.w3.org/2001/XMLSchema") != true){
XSDefinition xsdDefinition = xsdFactory.createXSDefinition();
xsdDefinition.setUnresolved(true);
xsdDefinition.setNamespace(property.getXSDType().getNamespaceURI());

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

scaSchema.setUnresolved(true);
scaSchema.setNamespace(namespace);
scaSchema.setLocation(IOHelper.toURI(scaSchemaURL));
scaSchema.setUnresolved(false); 
scaSchema.setUnresolved(true);
scaSchema.setNamespace(Constants.SCA11_NS);
scaSchema.setLocation(IOHelper.toURI(scaSchemaURL));
scaSchema.setUnresolved(false); 
modelResolver.addModel(scaSchema, context);

代码示例来源:origin: org.apache.tuscany.sca/tuscany-xsd

aggregated.setUnresolved(true);
aggregated.setSchema(facade);
aggregated.setNamespace(ns);
aggregated.setAggregatedDefinitions(definitions);
aggregated.setUnresolved(false);

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

aggregated.setUnresolved(true);
aggregated.setSchema(facade);
aggregated.setNamespace(ns);
aggregated.setAggregatedDefinitions(definitions);
aggregated.setUnresolved(false);

代码示例来源:origin: org.apache.tuscany.sca/tuscany-xsd

unresolved.setUnresolved(true);
unresolved.setNamespace(namespace);

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

Document doc = promote(element);
XSDefinition xsDefinition = xsdFactory.createXSDefinition();
xsDefinition.setUnresolved(true);
xsDefinition.setNamespace(element.getAttribute("targetNamespace"));
xsDefinition.setDocument(doc);

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

unresolved.setUnresolved(true);
unresolved.setNamespace(namespace);

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com