org.eclipse.emf.ecore.resource.impl.ResourceImpl.getURIFragmentRootSegment()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(56)

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

ResourceImpl.getURIFragmentRootSegment介绍

[英]Returns the URI fragment root segment for reaching the given direct content object. This default implementation returns the position of the object, if there is more than one object, otherwise, the empty string. As a result, the URI fragment for a single root object will be "/".
[中]返回到达给定直接内容对象的URI片段根段。如果存在多个对象,此默认实现将返回对象的位置,否则返回空字符串。因此,单个根对象的URI片段将为"/"

代码示例

代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore

if (internalEObject.eDirectResource() == this || unloadingContents != null && unloadingContents.contains(internalEObject))
 return "/" + getURIFragmentRootSegment(eObject);
 builder.append(id != null ? "?" + id : getURIFragmentRootSegment(internalEObject));
 builder.append("");
 builder.reverse();

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

if (internalEObject.eDirectResource() == this || unloadingContents != null && unloadingContents.contains(internalEObject))
 return "/" + getURIFragmentRootSegment(eObject);
 builder.append(getURIFragmentRootSegment(internalEObject));
 builder.append("");
 builder.reverse();

相关文章

微信公众号

最新文章

更多