gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-26 20:35:05 31 4
gpt4 key购买 nike

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

XSDefinition.getLocation介绍

[英]Get the location of the XSD
[中]获取XSD的位置

代码示例

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

public InputSource run() throws IOException {
    return XMLDocumentHelper.getInputSource(finaldef.getLocation().toURL());
  }
});

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

public InputSource run() throws IOException {
    return XMLDocumentHelper.getInputSource(finaldef.getLocation().toURL());
  }
});

代码示例来源:origin: org.apache.tuscany.sca/tuscany-binding-ws-wsdlgen

private static void loadXSD(XmlSchemaCollection schemaCollection, XSDefinition definition) {
  if (definition.getSchema() != null) {
    return;
  }
  if (definition.getDocument() != null) {
    String uri = null;
    if (definition.getLocation() != null) {
      uri = definition.getLocation().toString();
    }
    XmlSchema schema = schemaCollection.read(definition.getDocument(), uri, null);
    if (definition.getSchemaCollection() == null) {
      definition.setSchemaCollection(schemaCollection);
    }
    if (definition.getSchema() == null) {
      definition.setSchema(schema);
    }
  }
}

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

private static void loadXSD(XmlSchemaCollection schemaCollection, XSDefinition definition) {
  if (definition.getSchema() != null) {
    return;
  }
  if (definition.getDocument() != null) {
    String uri = null;
    if (definition.getLocation() != null) {
      uri = definition.getLocation().toString();
    }
    XmlSchema schema = schemaCollection.read(definition.getDocument(), uri, null);
    if (definition.getSchemaCollection() == null) {
      definition.setSchemaCollection(schemaCollection);
    }
    if (definition.getSchema() == null) {
      definition.setSchema(schema);
    }
  }
}

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

if (definition.getLocation() != null) {
    uri = definition.getLocation().toString();
  definition.setSchema(schema);
  definition.setUnresolved(false);
} else if (definition.getLocation() != null) {
  if (definition.getLocation().getFragment() != null) {
  for (XmlSchema d : schemaCollection.getXmlSchemas()) {
    if (isSameNamespace(d.getTargetNamespace(), definition.getNamespace()))  {
      if (d.getSourceURI().equals(definition.getLocation().toString())) {
        schema = d;
        break;

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

if (definition.getLocation() != null) {
    uri = definition.getLocation().toString();
  definition.setSchema(schema);
  definition.setUnresolved(false);
} else if (definition.getLocation() != null) {
  if (definition.getLocation().getFragment() != null) {
  for (XmlSchema d : schemaCollection.getXmlSchemas()) {
    if (isSameNamespace(d.getTargetNamespace(), definition.getNamespace()))  {
      if (d.getSourceURI().equals(definition.getLocation().toString())) {
        schema = d;
        break;

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

namespaceImport.getModelResolver().resolveModel(XSDefinition.class, (XSDefinition)unresolved, context);
  if (!resolved.isUnresolved()) {
    resolvedURL = resolved.getLocation().toURL();
    return xmlDocumentHelperGetInputSource(resolvedURL);
  import_.getModelResolver().resolveModel(XSDefinition.class, (XSDefinition)unresolved, context);
if (!resolved.isUnresolved()) {
  resolvedURL = resolved.getLocation().toURL();
  return xmlDocumentHelperGetInputSource(resolvedURL);

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

namespaceImport.getModelResolver().resolveModel(XSDefinition.class, (XSDefinition)unresolved, context);
  if (!resolved.isUnresolved()) {
    resolvedURL = resolved.getLocation().toURL();
    return xmlDocumentHelperGetInputSource(resolvedURL);
  import_.getModelResolver().resolveModel(XSDefinition.class, (XSDefinition)unresolved, context);
if (!resolved.isUnresolved()) {
  resolvedURL = resolved.getLocation().toURL();
  return xmlDocumentHelperGetInputSource(resolvedURL);

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

"targetNamespace=\"http://docs.oasis-open.org/ns/opencsa/sca/200912\" " +
  "elementFormDefault=\"qualified\">" +
"<include schemaLocation=\"" + xsdDefinition.getLocation() + "\"/>" +

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

"targetNamespace=\"http://docs.oasis-open.org/ns/opencsa/sca/200912\" " +
  "elementFormDefault=\"qualified\">" +
"<include schemaLocation=\"" + xsdDefinition.getLocation() + "\"/>" +

代码示例来源:origin: org.apache.tuscany.sca/tuscany-binding-ws-wsdlgen

Document[] docs = schemaDef.getAllSchemas();
  document = docs[docs.length-1];
  document.setDocumentURI(xsDef.getLocation().toString());
  xsDef.setDocument(document);
} catch (XmlSchemaException e) {

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

Document[] docs = schemaDef.getAllSchemas();
  document = docs[docs.length-1];
  document.setDocumentURI(xsDef.getLocation().toString());
  xsDef.setDocument(document);
} catch (XmlSchemaException e) {

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