|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An internal interface implemented by all resources.
It is used to maintain the referential integrity of the containment relation between a resource set and a resource.
Resource.getResourceSet()
,
ResourceSet.getResources()
,
InternalEObject.eBasicSetContainer(InternalEObject, int, NotificationChain)
Nested Class Summary |
Nested classes inherited from class org.eclipse.emf.ecore.resource.Resource |
Resource.Diagnostic, Resource.Factory, Resource.Internal, Resource.IOWrappedException |
Field Summary |
Fields inherited from interface org.eclipse.emf.ecore.resource.Resource |
OPTION_CIPHER, OPTION_ZIP, RESOURCE__CONTENTS, RESOURCE__ERRORS, RESOURCE__IS_LOADED, RESOURCE__IS_MODIFIED, RESOURCE__IS_TRACKING_MODIFICATION, RESOURCE__RESOURCE_SET, RESOURCE__URI, RESOURCE__WARNINGS |
Method Summary | |
void |
attached(EObject eObject)
Called when the object is attached to this resource, i.e., when it's eResource changes to be this one.
|
NotificationChain |
basicSetResourceSet(ResourceSet resourceSet,
NotificationChain notifications)
Sets the resource to be contained by the given resource set, and returns the notifications this produces. |
void |
detached(EObject eObject)
Called when the object is detached from this resource, i.e., when it's eResource changes to no longer be this one.
|
boolean |
isLoading()
Indicates whether the resource is currently being loaded. |
Methods inherited from interface org.eclipse.emf.ecore.resource.Resource |
getAllContents, getContents, getEObject, getErrors, getResourceSet, getURI, getURIFragment, getWarnings, isLoaded, isModified, isTrackingModification, load, load, save, save, setModified, setTrackingModification, setURI, unload |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
eAdapters, eDeliver, eNotify, eSetDeliver |
Method Detail |
public void attached(EObject eObject)
eResource
changes to be this one.
An implementation that resolves
based on IDs
will need to walk the tree
of this object
in order to tabulate an index.
An implementation that needs to track modification
will also need to walk the tree
in order to add the necessary adapter.
In either of these cases,
editing of containment relations will be significantly more expensive.
eObject
- the attached object.detached(EObject)
public void detached(EObject eObject)
eResource
changes to no longer be this one.
An implementation that resolves
based on IDs
will need to walk the tree
of this object
in order clean up it's index.
An implementation that needs to track modification
will also need to walk the tree
in order to remove the added adapter.
In either of these cases,
editing of containment relations will be significantly more expensive.
eObject
- the attached object.attached(EObject)
public NotificationChain basicSetResourceSet(ResourceSet resourceSet, NotificationChain notifications)
If it was previously contained by a resource set, it will have been removed.
public boolean isLoading()
This will be true
during a call to load(InputStream, Map)
,
before notifications are dispatched.
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |