gpt4 book ai didi

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

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

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

XSDefinition.getNamespace介绍

[英]Returns the namespace of this XmlSchema definition.
[中]返回此XmlSchema定义的命名空间。

代码示例

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

public XSDefinition getSchema(String namespace){
    for (XSDefinition xsDef : schemas){
      if (xsDef.getNamespace().equals(namespace)){
        return xsDef;
      }
    }
    return null;
  }
}

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

public XSDefinition getSchema(String namespace){
    for (XSDefinition xsDef : schemas){
      if (xsDef.getNamespace().equals(namespace)){
        return xsDef;
      }
    }
    return null;
  }
}

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

public void addModel(Object resolved, ProcessorContext context) {
  XSDefinition definition = (XSDefinition)resolved;
  List<XSDefinition> list = map.get(definition.getNamespace());
  if (list == null) {
    list = new ArrayList<XSDefinition>();
    map.put(definition.getNamespace(), list);
  }
  list.add(definition);
}

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

public Object removeModel(Object resolved, ProcessorContext context) {
  XSDefinition definition = (XSDefinition)resolved;
  List<XSDefinition> list = map.get(definition.getNamespace());
  if (list == null) {
    return null;
  } else {
    return list.remove(definition);
  }
}

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

public Object removeModel(Object resolved, ProcessorContext context) {
  XSDefinition definition = (XSDefinition)resolved;
  List<XSDefinition> list = map.get(definition.getNamespace());
  if (list == null) {
    return null;
  } else {
    return list.remove(definition);
  }
}

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

public void addModel(Object resolved, ProcessorContext context) {
  XSDefinition definition = (XSDefinition)resolved;
  List<XSDefinition> list = map.get(definition.getNamespace());
  if (list == null) {
    list = new ArrayList<XSDefinition>();
    map.put(definition.getNamespace(), list);
  }
  list.add(definition);
}

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

if(xsDef.getNamespace().equals("")){
  fromXsDef = xsDef;
  fromDoc = xsDef.getDocument();
} else if(xsDef.getNamespace().equals(toNamespace)){
  toDoc = xsDef.getDocument();
} else {
      if (xsDef.getNamespace().equals(schema.getTargetNamespace())){
        Document doc = schema.getSchemaDocument();

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

if(xsDef.getNamespace().equals("")){
  fromXsDef = xsDef;
  fromDoc = xsDef.getDocument();
} else if(xsDef.getNamespace().equals(toNamespace)){
  toDoc = xsDef.getDocument();
} else {
      if (xsDef.getNamespace().equals(schema.getTargetNamespace())){
        Document doc = schema.getSchemaDocument();

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

public <T> T resolveModel(Class<T> modelClass, T unresolved, ProcessorContext context) {
  schemaCollection.setSchemaResolver(new URIResolverImpl(contribution, context));
  XSDefinition definition = (XSDefinition)unresolved;        
  String namespace = definition.getNamespace();
  XSDefinition resolved = null;

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

public <T> T resolveModel(Class<T> modelClass, T unresolved, ProcessorContext context) {
  schemaCollection.setSchemaResolver(new URIResolverImpl(contribution, context));
  XSDefinition definition = (XSDefinition)unresolved;        
  String namespace = definition.getNamespace();
  XSDefinition resolved = null;

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

if (isSameNamespace(d.getTargetNamespace(), definition.getNamespace()))  {
  if (d.getSourceURI().equals(definition.getLocation().toString())) {
    schema = d;

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

if (isSameNamespace(d.getTargetNamespace(), definition.getNamespace()))  {
  if (d.getSourceURI().equals(definition.getLocation().toString())) {
    schema = d;

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

loadOnDemand(d);
String ns = definitions.get(0).getNamespace();

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

loadOnDemand(d);
String ns = definitions.get(0).getNamespace();

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

String nsURI = xsDef.getNamespace();
Document document = xsDef.getDocument();
if (document == null) {

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

String nsURI = xsDef.getNamespace();
Document document = xsDef.getDocument();
if (document == null) {

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