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

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

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

ResourceImpl.getURI介绍

[英]Returns the URI converter. This typically gets the ResourceSet#getURIConverterfrom the #getResourceSet resource set, but it calls #getDefaultURIConverter when there is no containing resource set.
[中]返回URI转换器。这通常会从#getResourceSet资源集中获取资源集#GetUriConverter,但当没有包含资源集时,它会调用#getDefaultURIConverter。

代码示例

代码示例来源:origin: org.wso2.wsdl.validator/wsdl-validator

/**
 * Loads a new {@link WSDLResourceImpl} into the resource set.
 * @param inputStream the contents of the new resource.
 * @param options any options to influence loading behavior.
 */
protected void doLoad(InputStream inputStream, Map options) throws IOException
{
 InputSource inputSource = inputStream instanceof URIConverter.ReadableInputStream ? new InputSource(
  ((URIConverter.ReadableInputStream)inputStream).asReader()) : new InputSource(inputStream);
 if (getURI() != null)
 {
  String id = getURI().toString();
  inputSource.setPublicId(id);
  inputSource.setSystemId(id);
 }
 doLoad(inputSource, options);
}

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

public void delete(Map<?, ?> options) throws IOException
{
 getURIConverter().delete(getURI(), mergeMaps(options, defaultDeleteOptions));
 unload();
 ResourceSet resourceSet = getResourceSet();
 if (resourceSet != null)
 {
  resourceSet.getResources().remove(this);
 }
}

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

public void delete(Map<?, ?> options) throws IOException
{
 getURIConverter().delete(getURI(), mergeMaps(options, defaultDeleteOptions));
 unload();
 ResourceSet resourceSet = getResourceSet();
 if (resourceSet != null)
 {
  resourceSet.getResources().remove(this);
 }
}

代码示例来源:origin: org.wso2.wsdl.validator/wsdl-validator

private void handleDefinitionElement(Element element)
{
 Definition definition = null;
 if (element == null)
 {
  definition = WSDLFactory.eINSTANCE.createDefinition();
  ((DefinitionImpl)definition).setUseExtensionFactories(useExtensionFactories);
 }
 else
 {
  definition = DefinitionImpl.createDefinition(element, getURI().toString(), useExtensionFactories);
 }
 getContents().add(definition);
 // Do we need the next line?
 ((DefinitionImpl)definition).reconcileReferences(true);
}

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

OutputStream outputStream = uriConverter.createOutputStream(getURI(), effectiveOptions);
try

代码示例来源:origin: org.wso2.wsdl.validator/wsdl-validator

progressMonitor.subTask(getURI().toString());
  XSDSchema schema = el.getSchema();
  if (schema != null)
   schema.setSchemaLocation(getURI().toString());

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

OutputStream outputStream = uriConverter.createOutputStream(getURI(), effectiveOptions);
try

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

try
 oldContents = getUnderlyingInputStream(uriConverter.createInputStream(getURI(), defaultLoadOptions), options);
 OutputStream newContents = uriConverter.createOutputStream(getURI(), effectiveOptions);
 try

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

(getURI(),
 effectiveOptions);

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

try
 oldContents = getUnderlyingInputStream(uriConverter.createInputStream(getURI(), defaultLoadOptions), options);
 OutputStream newContents = uriConverter.createOutputStream(getURI(), effectiveOptions);
 try

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

(getURI(),
 effectiveOptions);

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

try
 oldContents = getUnderlyingInputStream(uriConverter.createInputStream(getURI(), defaultLoadOptions), options);
 OutputStream newContents = uriConverter.createOutputStream(getURI(), effectiveOptions);
 try

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

try
 oldContents = getUnderlyingInputStream(uriConverter.createInputStream(getURI(), defaultLoadOptions), options);
 OutputStream newContents = uriConverter.createOutputStream(getURI(), effectiveOptions);
 try

相关文章

微信公众号

最新文章

更多