Package org.eclipse.emf.cdo.common.model
Class EMFUtil.ExtResourceSet
java.lang.Object
org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.NotifierImpl
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl
org.eclipse.emf.cdo.common.model.EMFUtil.ExtResourceSet
- All Implemented Interfaces:
Notifier
,ResourceSet
- Enclosing class:
- EMFUtil
An extension of
ResourceSetImpl
that allows demandLoading of resources and delegation of resource lookups,
to be switched on/off as desired.- Since:
- 4.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.resource.impl.ResourceSetImpl
ResourceSetImpl.MappedResourceLocator, ResourceSetImpl.ResourceLocator, ResourceSetImpl.ResourcesEList<E extends Object & Resource>
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
BasicNotifierImpl.EAdapterList<E extends Object & Adapter>, BasicNotifierImpl.EObservableAdapterList, BasicNotifierImpl.EScannableAdapterList
-
Field Summary
Fields inherited from class org.eclipse.emf.ecore.resource.impl.ResourceSetImpl
adapterFactories, loadOptions, packageRegistry, resourceFactoryRegistry, resourceLocator, resources, uriConverter, uriResourceMap
Fields inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl
eAdapters, EDELIVER, eFlags, ELAST_NOTIFIER_FLAG
Fields inherited from interface org.eclipse.emf.ecore.resource.ResourceSet
RESOURCE_SET__RESOURCES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Resource
delegatedGetResource
(URI uri, boolean loadOnDemand) protected void
demandLoad
(Resource resource) boolean
boolean
void
setDelegating
(boolean delegating) void
setDemandLoading
(boolean demandLoading) Methods inherited from class org.eclipse.emf.ecore.resource.impl.ResourceSetImpl
createResource, createResource, demandCreateResource, demandLoadHelper, getAdapterFactories, getAllContents, getEObject, getLoadOptions, getPackageRegistry, getResource, getResourceFactoryRegistry, getResources, getURIConverter, getURIResourceMap, handleDemandLoadException, setPackageRegistry, setResourceFactoryRegistry, setURIConverter, setURIResourceMap, toString
Methods inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl
eAdapters, eBasicAdapters, eDeliver, eSetDeliver
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Constructor Details
-
ExtResourceSet
public ExtResourceSet(boolean delegating, boolean demandLoading) - Since:
- 4.7
-
-
Method Details
-
isDelegating
public boolean isDelegating() -
setDelegating
public void setDelegating(boolean delegating) -
isDemandLoading
public boolean isDemandLoading() -
setDemandLoading
public void setDemandLoading(boolean demandLoading) -
demandLoad
- Overrides:
demandLoad
in classResourceSetImpl
- Throws:
IOException
-
delegatedGetResource
- Overrides:
delegatedGetResource
in classResourceSetImpl
-