public static class EMFUtil.ExtResourceSet extends ResourceSetImpl
ResourceSetImpl
that allows demandLoading of resources and delegation of resource lookups,
to be switched on/off as desired.ResourceSetImpl.MappedResourceLocator, ResourceSetImpl.ResourceLocator, ResourceSetImpl.ResourcesEList<E extends java.lang.Object & Resource>
BasicNotifierImpl.EAdapterList<E extends java.lang.Object & Adapter>, BasicNotifierImpl.EObservableAdapterList, BasicNotifierImpl.EScannableAdapterList
adapterFactories, loadOptions, packageRegistry, resourceFactoryRegistry, resourceLocator, resources, uriConverter, uriResourceMap
eAdapters, EDELIVER, eFlags, ELAST_NOTIFIER_FLAG
RESOURCE_SET__RESOURCES
Constructor and Description |
---|
ExtResourceSet(boolean delegating,
boolean demandLoading) |
Modifier and Type | Method and Description |
---|---|
protected Resource |
delegatedGetResource(URI uri,
boolean loadOnDemand) |
protected void |
demandLoad(Resource resource) |
boolean |
isDelegating() |
boolean |
isDemandLoading() |
void |
setDelegating(boolean delegating) |
void |
setDemandLoading(boolean demandLoading) |
createResource, createResource, demandCreateResource, demandLoadHelper, getAdapterFactories, getAllContents, getEObject, getLoadOptions, getPackageRegistry, getResource, getResourceFactoryRegistry, getResources, getURIConverter, getURIResourceMap, handleDemandLoadException, setPackageRegistry, setResourceFactoryRegistry, setURIConverter, setURIResourceMap, toString
eAdapters, eBasicAdapters, eDeliver, eSetDeliver
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
eAdapters, eDeliver, eNotify, eSetDeliver
public ExtResourceSet(boolean delegating, boolean demandLoading)
public boolean isDelegating()
public void setDelegating(boolean delegating)
public boolean isDemandLoading()
public void setDemandLoading(boolean demandLoading)
protected void demandLoad(Resource resource) throws java.io.IOException
demandLoad
in class ResourceSetImpl
java.io.IOException
protected Resource delegatedGetResource(URI uri, boolean loadOnDemand)
delegatedGetResource
in class ResourceSetImpl
Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html