本文整理了Java中org.apache.xmlbeans.SchemaTypeLoader.findAttributeGroupRef()
方法的一些代码示例,展示了SchemaTypeLoader.findAttributeGroupRef()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SchemaTypeLoader.findAttributeGroupRef()
方法的具体详情如下:
包路径:org.apache.xmlbeans.SchemaTypeLoader
类名称:SchemaTypeLoader
方法名:findAttributeGroupRef
[英]Used for on-demand loading.
[中]用于按需加载。
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
public SchemaAttributeGroup.Ref findAttributeGroupRef(QName name)
{
Object cached = _attributeGroupCache.get(name);
if (cached == CACHED_NOT_FOUND)
return null;
SchemaAttributeGroup.Ref result = (SchemaAttributeGroup.Ref) cached;
if (result == null)
{
for (int i = 0; i < _searchPath.length; i++)
if (null != (result = _searchPath[i].findAttributeGroupRef(name)))
break;
if (result == null)
{
SchemaTypeSystem ts = typeSystemForComponent("schema" + METADATA_PACKAGE_LOAD + "/attributegroup/", name);
if (ts != null)
{
result = ts.findAttributeGroupRef(name);
assert(result != null) : "Type system registered attribute group " + QNameHelper.pretty(name) + " but does not return it";
}
}
_attributeGroupCache.put(name, result == null ? CACHED_NOT_FOUND : result);
}
return result;
}
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
return _linker.findModelGroupRef(QNameHelper.forPretty(handle, 4));
case 'N': // _XN_ - external attribute group
return _linker.findAttributeGroupRef(QNameHelper.forPretty(handle, 4));
case 'D': // _XD_ - external identity constraint
return _linker.findIdentityConstraintRef(QNameHelper.forPretty(handle, 4));
代码示例来源:origin: com.github.pjfanning/xmlbeans
public SchemaAttributeGroup.Ref findAttributeGroupRef(QName name)
{
Object cached = _attributeGroupCache.get(name);
if (cached == CACHED_NOT_FOUND)
return null;
SchemaAttributeGroup.Ref result = (SchemaAttributeGroup.Ref) cached;
if (result == null)
{
for (int i = 0; i < _searchPath.length; i++)
if (null != (result = _searchPath[i].findAttributeGroupRef(name)))
break;
if (result == null)
{
SchemaTypeSystem ts = typeSystemForComponent("schema" + METADATA_PACKAGE_LOAD + "/attributegroup/", name);
if (ts != null)
{
result = ts.findAttributeGroupRef(name);
assert(result != null) : "Type system registered attribute group " + QNameHelper.pretty(name) + " but does not return it";
}
}
_attributeGroupCache.put(name, result == null ? CACHED_NOT_FOUND : result);
}
return result;
}
代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans
public SchemaAttributeGroup.Ref findAttributeGroupRef(QName name)
{
Object cached = _attributeGroupCache.get(name);
if (cached == CACHED_NOT_FOUND)
return null;
SchemaAttributeGroup.Ref result = (SchemaAttributeGroup.Ref) cached;
if (result == null)
{
for (int i = 0; i < _searchPath.length; i++)
if (null != (result = _searchPath[i].findAttributeGroupRef(name)))
break;
if (result == null)
{
SchemaTypeSystem ts = typeSystemForComponent("schema" + METADATA_PACKAGE_LOAD + "/attributegroup/", name);
if (ts != null)
{
result = ts.findAttributeGroupRef(name);
assert(result != null) : "Type system registered attribute group " + QNameHelper.pretty(name) + " but does not return it";
}
}
_attributeGroupCache.put(name, result == null ? CACHED_NOT_FOUND : result);
}
return result;
}
代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans
return _linker.findModelGroupRef(QNameHelper.forPretty(handle, 4));
case 'N': // _XN_ - external attribute group
return _linker.findAttributeGroupRef(QNameHelper.forPretty(handle, 4));
case 'D': // _XD_ - external identity constraint
return _linker.findIdentityConstraintRef(QNameHelper.forPretty(handle, 4));
代码示例来源:origin: com.github.pjfanning/xmlbeans
return _linker.findModelGroupRef(QNameHelper.forPretty(handle, 4));
case 'N': // _XN_ - external attribute group
return _linker.findAttributeGroupRef(QNameHelper.forPretty(handle, 4));
case 'D': // _XD_ - external identity constraint
return _linker.findIdentityConstraintRef(QNameHelper.forPretty(handle, 4));
内容来源于网络,如有侵权,请联系作者删除!