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

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

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

SchemaTypeLoader.findIdentityConstraintRef介绍

[英]Used for on-demand loading.
[中]用于按需加载。

代码示例

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

public SchemaIdentityConstraint.Ref findIdentityConstraintRef(QName name)
{
  Object cached = _idConstraintCache.get(name);
  if (cached == CACHED_NOT_FOUND)
    return null;
  SchemaIdentityConstraint.Ref result = (SchemaIdentityConstraint.Ref) cached;
  if (result == null)
  {
    for (int i = 0; i < _searchPath.length; i++)
      if (null != (result = _searchPath[i].findIdentityConstraintRef(name)))
        break;
    if (result == null)
    {
      SchemaTypeSystem ts = typeSystemForComponent("schema" + METADATA_PACKAGE_LOAD + "/identityconstraint/", name);
      if (ts != null)
      {
        result = ts.findIdentityConstraintRef(name);
        assert(result != null) : "Type system registered identity constraint " + QNameHelper.pretty(name) + " but does not return it";
      }
    }
    _idConstraintCache.put(name, result == null ? CACHED_NOT_FOUND : result);
  }
  return result;
}

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

return _linker.findAttributeGroupRef(QNameHelper.forPretty(handle, 4));
case 'D': // _XD_ - external identity constraint
  return _linker.findIdentityConstraintRef(QNameHelper.forPretty(handle, 4));
case 'R': // _XR_ - external ref to attribute's type

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

public SchemaIdentityConstraint.Ref findIdentityConstraintRef(QName name)
{
  Object cached = _idConstraintCache.get(name);
  if (cached == CACHED_NOT_FOUND)
    return null;
  SchemaIdentityConstraint.Ref result = (SchemaIdentityConstraint.Ref) cached;
  if (result == null)
  {
    for (int i = 0; i < _searchPath.length; i++)
      if (null != (result = _searchPath[i].findIdentityConstraintRef(name)))
        break;
    if (result == null)
    {
      SchemaTypeSystem ts = typeSystemForComponent("schema" + METADATA_PACKAGE_LOAD + "/identityconstraint/", name);
      if (ts != null)
      {
        result = ts.findIdentityConstraintRef(name);
        assert(result != null) : "Type system registered identity constraint " + QNameHelper.pretty(name) + " but does not return it";
      }
    }
    _idConstraintCache.put(name, result == null ? CACHED_NOT_FOUND : result);
  }
  return result;
}

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

public SchemaIdentityConstraint.Ref findIdentityConstraintRef(QName name)
{
  Object cached = _idConstraintCache.get(name);
  if (cached == CACHED_NOT_FOUND)
    return null;
  SchemaIdentityConstraint.Ref result = (SchemaIdentityConstraint.Ref) cached;
  if (result == null)
  {
    for (int i = 0; i < _searchPath.length; i++)
      if (null != (result = _searchPath[i].findIdentityConstraintRef(name)))
        break;
    if (result == null)
    {
      SchemaTypeSystem ts = typeSystemForComponent("schema" + METADATA_PACKAGE_LOAD + "/identityconstraint/", name);
      if (ts != null)
      {
        result = ts.findIdentityConstraintRef(name);
        assert(result != null) : "Type system registered identity constraint " + QNameHelper.pretty(name) + " but does not return it";
      }
    }
    _idConstraintCache.put(name, result == null ? CACHED_NOT_FOUND : result);
  }
  return result;
}

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

return _linker.findAttributeGroupRef(QNameHelper.forPretty(handle, 4));
case 'D': // _XD_ - external identity constraint
  return _linker.findIdentityConstraintRef(QNameHelper.forPretty(handle, 4));
case 'R': // _XR_ - external ref to attribute's type

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

return _linker.findAttributeGroupRef(QNameHelper.forPretty(handle, 4));
case 'D': // _XD_ - external identity constraint
  return _linker.findIdentityConstraintRef(QNameHelper.forPretty(handle, 4));
case 'R': // _XR_ - external ref to attribute's type

相关文章

微信公众号

最新文章

更多