本文整理了Java中org.eclipse.emf.ecore.resource.impl.ResourceImpl.getResourceSet
方法的一些代码示例,展示了ResourceImpl.getResourceSet
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ResourceImpl.getResourceSet
方法的具体详情如下:
包路径:org.eclipse.emf.ecore.resource.impl.ResourceImpl
类名称:ResourceImpl
方法名:getResourceSet
暂无
代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore
/**
* Returns the URI converter.
* This typically gets the {@link ResourceSet#getURIConverter converter}
* from the {@link #getResourceSet containing} resource set,
* but it calls {@link #getDefaultURIConverter} when there is no containing resource set.
* @return the URI converter.
*/
protected URIConverter getURIConverter()
{
return
getResourceSet() == null ?
getDefaultURIConverter() :
getResourceSet().getURIConverter();
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore
/**
* Returns the URI converter.
* This typically gets the {@link ResourceSet#getURIConverter converter}
* from the {@link #getResourceSet containing} resource set,
* but it calls {@link #getDefaultURIConverter} when there is no containing resource set.
* @return the URI converter.
*/
protected URIConverter getURIConverter()
{
return
getResourceSet() == null ?
getDefaultURIConverter() :
getResourceSet().getURIConverter();
}
代码示例来源:origin: org.wso2.wsdl.validator/wsdl-validator
public void attached(EObject eObject)
{
super.attached(eObject);
// we need to attach a XSDSchemaLocator in order to resolve inline schema locations
// if there's not already one attached
XSDSchemaLocator xsdSchemaLocator = (XSDSchemaLocator)EcoreUtil.getRegisteredAdapter(this, XSDSchemaLocator.class);
if (xsdSchemaLocator == null)
{
getResourceSet().getAdapterFactories().add(new XSDSchemaLocatorAdapterFactory());
}
if (eObject instanceof DefinitionImpl)
{
DefinitionImpl definition = (DefinitionImpl)eObject;
definition.setInlineSchemaLocations(this);
}
}
/*
代码示例来源: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);
}
}
内容来源于网络,如有侵权,请联系作者删除!