public class XtextResourceSet
extends org.eclipse.emf.ecore.resource.impl.ResourceSetImpl
ResourceSetImpl.getURIResourceMap()
containing the resource's URI as well as the normalized version of it as a key.
The superset of actual and normalized resource URIs must be unique within the same resource set.XtextPlatformResourceURIHandler
Modifier and Type | Class and Description |
---|---|
protected class |
XtextResourceSet.ResourcesList
adds the added resource to the
ResourceSetImpl.getURIResourceMap() . |
protected class |
XtextResourceSet.UriChangeListener |
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.MappedResourceLocator, org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.ResourceLocator, org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.ResourcesEList<E extends java.lang.Object & org.eclipse.emf.ecore.resource.Resource>
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> |
normalizationMap |
adapterFactories, loadOptions, packageRegistry, resourceFactoryRegistry, resourceLocator, resources, uriConverter, uriResourceMap
Constructor and Description |
---|
XtextResourceSet() |
Modifier and Type | Method and Description |
---|---|
void |
addLoadOption(java.lang.Object key,
java.lang.Object value) |
protected java.util.Map<?,?> |
addTimeout(java.util.Map<?,?> options)
returns a copy of the given map containing a timeout of 500ms
if the given option map did not already specify a
URIConverter.OPTION_TIMEOUT |
protected XtextResourceSet.ResourcesList |
createResourceList()
Create the concrete list that will contain the resources.
|
java.lang.Object |
getClasspathURIContext() |
IClasspathUriResolver |
getClasspathUriResolver() |
int |
getModificationStamp() |
java.util.Map<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> |
getNormalizationMap() |
org.eclipse.emf.ecore.resource.Resource |
getResource(org.eclipse.emf.common.util.URI uri,
boolean loadOnDemand) |
protected XtextResourceSet.UriChangeListener |
getUriChangeListener() |
org.eclipse.emf.ecore.resource.URIConverter |
getURIConverter() |
protected void |
initializeDefaultLoadOptions()
Adds a
XtextPlatformResourceURIHandler to the default load
options of this resource set. |
boolean |
isOutdated() |
void |
markOutdated() |
void |
markSynced() |
protected void |
registerURI(org.eclipse.emf.ecore.resource.Resource resource) |
void |
removeLoadOption(java.lang.Object key) |
void |
setClasspathURIContext(java.lang.Object classpathURIContext) |
void |
setClasspathUriResolver(IClasspathUriResolver resolver) |
createResource, createResource, delegatedGetResource, demandCreateResource, demandLoad, demandLoadHelper, getAdapterFactories, getAllContents, getEObject, getLoadOptions, getPackageRegistry, getResourceFactoryRegistry, getResources, getURIResourceMap, handleDemandLoadException, setPackageRegistry, setResourceFactoryRegistry, setURIConverter, setURIResourceMap, toString
eAdapters, eBasicAdapters, eDeliver, eSetDeliver
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
protected java.util.Map<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> normalizationMap
public java.util.Map<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> getNormalizationMap()
public void markOutdated()
public void markSynced()
public boolean isOutdated()
public int getModificationStamp()
protected XtextResourceSet.UriChangeListener getUriChangeListener()
protected void registerURI(org.eclipse.emf.ecore.resource.Resource resource)
protected void initializeDefaultLoadOptions()
XtextPlatformResourceURIHandler
to the default load
options of this resource set.
Clients who don't want this behavior can override this method.protected XtextResourceSet.ResourcesList createResourceList()
public void addLoadOption(java.lang.Object key, java.lang.Object value)
public void removeLoadOption(java.lang.Object key)
public org.eclipse.emf.ecore.resource.Resource getResource(org.eclipse.emf.common.util.URI uri, boolean loadOnDemand)
getResource
in interface org.eclipse.emf.ecore.resource.ResourceSet
getResource
in class org.eclipse.emf.ecore.resource.impl.ResourceSetImpl
public org.eclipse.emf.ecore.resource.URIConverter getURIConverter()
getURIConverter
in interface org.eclipse.emf.ecore.resource.ResourceSet
getURIConverter
in class org.eclipse.emf.ecore.resource.impl.ResourceSetImpl
protected java.util.Map<?,?> addTimeout(java.util.Map<?,?> options)
URIConverter.OPTION_TIMEOUT
public java.lang.Object getClasspathURIContext()
public void setClasspathURIContext(java.lang.Object classpathURIContext)
public IClasspathUriResolver getClasspathUriResolver()
public void setClasspathUriResolver(IClasspathUriResolver resolver)