org.apache.xmlbeans.SchemaTypeLoader.findModelGroup()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(96)

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

SchemaTypeLoader.findModelGroup介绍

[英]Returns the model group defintion with the given name, or null if none.
[中]返回具有给定名称的模型组定义,如果没有,则返回null。

代码示例

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

SchemaModelGroupImpl findRedefinedModelGroup(QName name, String chameleonNamespace, SchemaModelGroupImpl redefinedBy)
{
  QName redefinitionFor = redefinedBy.getName();
  name = compatName(name, chameleonNamespace);
  if (name.equals(redefinitionFor))
  {
    return (SchemaModelGroupImpl)_redefinedModelGroups.get(redefinedBy);
    // BUGBUG: should also link against _importingLoader.findRedefinedModelGroup
  }
  SchemaModelGroupImpl result = (SchemaModelGroupImpl)_modelGroups.get(name);
  if (result == null)
    result = (SchemaModelGroupImpl)_importingLoader.findModelGroup(name);
  return result;
}

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

SchemaModelGroupImpl findModelGroup(QName name, String chameleonNamespace, String sourceNamespace)
{
  name = compatName(name, chameleonNamespace);
  SchemaModelGroupImpl result = (SchemaModelGroupImpl)_modelGroups.get(name);
  boolean foundOnLoader = false;
  if (result == null)
  {
    result = (SchemaModelGroupImpl)_importingLoader.findModelGroup(name);
    foundOnLoader = result != null;
  }
  if (!foundOnLoader && sourceNamespace != null)
    registerDependency(sourceNamespace, name.getNamespaceURI());
  return result;
}

代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans

SchemaModelGroupImpl findRedefinedModelGroup(QName name, String chameleonNamespace, SchemaModelGroupImpl redefinedBy)
{
  QName redefinitionFor = redefinedBy.getName();
  name = compatName(name, chameleonNamespace);
  if (name.equals(redefinitionFor))
  {
    return (SchemaModelGroupImpl)_redefinedModelGroups.get(redefinedBy);
    // BUGBUG: should also link against _importingLoader.findRedefinedModelGroup
  }
  SchemaModelGroupImpl result = (SchemaModelGroupImpl)_modelGroups.get(name);
  if (result == null)
    result = (SchemaModelGroupImpl)_importingLoader.findModelGroup(name);
  return result;
}

代码示例来源:origin: com.github.pjfanning/xmlbeans

SchemaModelGroupImpl findModelGroup(QName name, String chameleonNamespace, String sourceNamespace)
{
  name = compatName(name, chameleonNamespace);
  SchemaModelGroupImpl result = (SchemaModelGroupImpl)_modelGroups.get(name);
  boolean foundOnLoader = false;
  if (result == null)
  {
    result = (SchemaModelGroupImpl)_importingLoader.findModelGroup(name);
    foundOnLoader = result != null;
  }
  if (!foundOnLoader && sourceNamespace != null)
    registerDependency(sourceNamespace, name.getNamespaceURI());
  return result;
}

代码示例来源:origin: com.github.pjfanning/xmlbeans

SchemaModelGroupImpl findRedefinedModelGroup(QName name, String chameleonNamespace, SchemaModelGroupImpl redefinedBy)
{
  QName redefinitionFor = redefinedBy.getName();
  name = compatName(name, chameleonNamespace);
  if (name.equals(redefinitionFor))
  {
    return (SchemaModelGroupImpl)_redefinedModelGroups.get(redefinedBy);
    // BUGBUG: should also link against _importingLoader.findRedefinedModelGroup
  }
  SchemaModelGroupImpl result = (SchemaModelGroupImpl)_modelGroups.get(name);
  if (result == null)
    result = (SchemaModelGroupImpl)_importingLoader.findModelGroup(name);
  return result;
}

代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans

SchemaModelGroupImpl findModelGroup(QName name, String chameleonNamespace, String sourceNamespace)
{
  name = compatName(name, chameleonNamespace);
  SchemaModelGroupImpl result = (SchemaModelGroupImpl)_modelGroups.get(name);
  boolean foundOnLoader = false;
  if (result == null)
  {
    result = (SchemaModelGroupImpl)_importingLoader.findModelGroup(name);
    foundOnLoader = result != null;
  }
  if (!foundOnLoader && sourceNamespace != null)
    registerDependency(sourceNamespace, name.getNamespaceURI());
  return result;
}

相关文章

微信公众号

最新文章

更多