public static interface Resource.Internal extends Resource
It is used to maintain the referential integrity of
the containment relation between a resource set and a resource.
Clients must extend the default implementation
,
since methods can and will be added to this API.
Resource.Diagnostic, Resource.Factory, Resource.Internal, Resource.IOWrappedException
OPTION_CIPHER, OPTION_LINE_DELIMITER, OPTION_LINE_DELIMITER_UNSPECIFIED, OPTION_SAVE_ONLY_IF_CHANGED, OPTION_SAVE_ONLY_IF_CHANGED_FILE_BUFFER, OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER, OPTION_ZIP, RESOURCE__CONTENTS, RESOURCE__ERRORS, RESOURCE__IS_LOADED, RESOURCE__IS_MODIFIED, RESOURCE__IS_TRACKING_MODIFICATION, RESOURCE__RESOURCE_SET, RESOURCE__TIME_STAMP, RESOURCE__URI, RESOURCE__WARNINGS
Modifier and Type | Method and Description |
---|---|
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.
|
delete, getAllContents, getContents, getEObject, getErrors, getResourceSet, getTimeStamp, getURI, getURIFragment, getWarnings, isLoaded, isModified, isTrackingModification, load, load, save, save, setModified, setTimeStamp, setTrackingModification, setURI, unload
eAdapters, eDeliver, eNotify, eSetDeliver
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)
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)
NotificationChain basicSetResourceSet(ResourceSet resourceSet, NotificationChain notifications)
If it was previously contained by a resource set, it will have been removed.
null
if there aren't any.boolean isLoading()
This will be true
during a call to load(InputStream, Map)
,
before notifications are dispatched.