|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.MinimalEObjectImpl
org.eclipse.emf.ecore.impl.MinimalEStoreEObjectImpl
org.eclipse.emf.internal.cdo.CDOObjectImpl
org.eclipse.emf.cdo.eresource.impl.CDOResourceNodeImpl
org.eclipse.emf.cdo.eresource.impl.CDOResourceLeafImpl
org.eclipse.emf.cdo.eresource.impl.CDOResourceImpl

An implementation of the model object 'CDO Resource'.
The following features are implemented:
| Nested Class Summary | |
|---|---|
protected class |
CDOResourceImpl.ContentsCDOList
An implementation of a CDO specific 'contents' list. |
| Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl |
|---|
MinimalEObjectImpl.Container |
| Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
|---|
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl |
| Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
|---|
BasicNotifierImpl.EAdapterList<E extends Object & Adapter>, BasicNotifierImpl.EObservableAdapterList |
| Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.resource.Resource |
|---|
Resource.Diagnostic, Resource.Factory, Resource.Internal, Resource.IOWrappedException |
| Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject |
|---|
InternalEObject.EStore |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
|---|
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET |
| Fields inherited from interface org.eclipse.emf.cdo.eresource.CDOResource |
|---|
OPTION_SAVE_BASE_URI, OPTION_SAVE_OVERRIDE_TRANSACTION, OPTION_SAVE_PROGRESS_MONITOR, PREFETCH_PARAMETER |
| Fields inherited from interface org.eclipse.emf.cdo.eresource.CDOResourceNode |
|---|
ROOT_NAME, ROOT_PATH |
| Fields inherited from interface org.eclipse.emf.ecore.resource.Resource |
|---|
OPTION_CIPHER, 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 |
| Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
|---|
EOPPOSITE_FEATURE_BASE |
| Fields inherited from interface org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder |
|---|
NIL |
| Constructor Summary | |
|---|---|
protected |
CDOResourceImpl()
|
|
CDOResourceImpl(URI initialURI)
|
| Method Summary | |
|---|---|
void |
attached(EObject object)
|
NotificationChain |
basicSetResourceSet(ResourceSet resourceSet,
NotificationChain notifications)
|
void |
cdoInternalLoading(EObject object)
Informs the resource that an object contained within it is being loaded. |
void |
cdoInternalLoadingDone(EObject object)
Informs the resource that an object contained within it has finished being loaded. |
void |
cdoInternalPostDetach(boolean remote)
It is really important for accessing the data to go through CDOObjectImpl.cdoStore(). |
void |
cdoInternalPreLoad()
|
protected EList<?> |
createList(EStructuralFeature eStructuralFeature)
|
void |
delete(Map<?,?> options)
|
void |
detached(EObject object)
|
int |
eBaseStructuralFeatureID(int derivedFeatureID,
Class<?> baseClass)
|
int |
eDerivedStructuralFeatureID(int baseFeatureID,
Class<?> baseClass)
|
Resource.Internal |
eDirectResource()
|
protected EClass |
eStaticClass()
|
TreeIterator<EObject> |
getAllContents()
|
protected TreeIterator<EObject> |
getAllProperContents(List<EObject> contents)
|
EList<EObject> |
getContents()
|
EObject |
getEObject(String uriFragment)
Note: URI from temporary objects are going to changed when we commit the CDOTransaction. |
protected EObject |
getEObjectByID(String id)
Returns the object based on the fragment as an ID. |
EList<Resource.Diagnostic> |
getErrors()
|
Map<String,EObject> |
getIntrinsicIDToEObjectMap()
Returns the map used to cache the EObject that is identified by the value
of its ID feature. |
ResourceSet |
getResourceSet()
|
long |
getTimeStamp()
|
URI |
getURI()
|
String |
getURIFragment(EObject object)
|
URI |
getURIGen()
|
EList<Resource.Diagnostic> |
getWarnings()
|
boolean |
isExisting()
|
boolean |
isLoaded()
|
boolean |
isLoading()
|
boolean |
isModified()
|
boolean |
isRoot()
|
boolean |
isTrackingModification()
|
void |
load(InputStream inputStream,
Map<?,?> options)
|
void |
load(Map<?,?> options)
|
void |
save(Map<?,?> options)
|
void |
save(OutputStream outputStream,
Map<?,?> options)
|
protected void |
setExisting(boolean existing)
|
void |
setIntrinsicIDToEObjectMap(Map<String,EObject> intrinsicIDToEObjectMap)
Sets the map used to cache the EObject identified by the value of its ID feature. |
void |
setModified(boolean newModified)
|
void |
setResourceSet(ResourceSet newResourceSet)
|
void |
setRoot(boolean root)
|
void |
setTimeStamp(long newTimeStamp)
|
void |
setTrackingModification(boolean newTrackingModification)
|
void |
setTrackingModificationGen(boolean newTrackingModification)
|
void |
setURI(URI newURI)
|
void |
setURIGen(URI newURI)
|
void |
unload()
|
| Methods inherited from class org.eclipse.emf.cdo.eresource.impl.CDOResourceNodeImpl |
|---|
basicSetFolder, basicSetName, eStaticFeatureCount, getFolder, getName, getPath, setFolder, setFolderGen, setName, setNameGen, setPath |
| Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEStoreEObjectImpl |
|---|
eBasicContainerFeatureID, eBasicInternalContainer, eBasicSetAdapterArray, eDerivedStructuralFeatureID |
| Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl |
|---|
eAdapters, eBasicAdapterArray, eBasicAdapters, eBasicHasAdapters, eBasicProperties, eBasicSetContainer, eBasicSetContainerFeatureID, eContents, eCrossReferences, eDeliver, eIsProxy, eProperties, eProxyURI, eSetDeliver, eSetProxyURI |
| Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
|---|
eNotificationRequired, eNotify |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.emf.cdo.eresource.CDOResourceNode |
|---|
getFolder, getName, getPath, setFolder, setName, setPath |
| Methods inherited from interface org.eclipse.emf.cdo.CDOObject |
|---|
cdoConflict, cdoDirectResource, cdoHistory, cdoID, cdoInvalid, cdoLockState, cdoPrefetch, cdoReadLock, cdoReload, cdoResource, cdoRevision, cdoState, cdoView, cdoWriteLock, cdoWriteOption |
| Methods inherited from interface org.eclipse.emf.ecore.EObject |
|---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset |
| Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
|---|
eAdapters, eDeliver, eNotify, eSetDeliver |
| Methods inherited from interface org.eclipse.emf.ecore.InternalEObject |
|---|
eBasicRemoveFromContainer, eDerivedOperationID, eGet, eGet, eInverseAdd, eInverseRemove, eInvoke, eIsSet, eNotificationRequired, eObjectForURIFragmentSegment, eProxyURI, eResolveProxy, eSet, eSetProxyURI, eSetStore, eSetting, eUnset, eURIFragmentSegment |
| Constructor Detail |
|---|
public CDOResourceImpl(URI initialURI)
protected CDOResourceImpl()
| Method Detail |
|---|
protected EClass eStaticClass()
eStaticClass in class CDOResourceLeafImplpublic Resource.Internal eDirectResource()
eDirectResource in interface InternalEObjecteDirectResource in class CDOObjectImpl
public int eDerivedStructuralFeatureID(int baseFeatureID,
Class<?> baseClass)
eDerivedStructuralFeatureID in interface InternalEObjecteDerivedStructuralFeatureID in class BasicEObjectImpl
public int eBaseStructuralFeatureID(int derivedFeatureID,
Class<?> baseClass)
eBaseStructuralFeatureID in interface InternalEObjecteBaseStructuralFeatureID in class BasicEObjectImplpublic boolean isRoot()
isRoot in interface CDOResourceNodepublic void setRoot(boolean root)
public ResourceSet getResourceSet()
getResourceSet in interface CDOResourcegetResourceSet in interface ResourceCDOResource.setResourceSet(ResourceSet),
EresourcePackage.getCDOResource_ResourceSet()public void setResourceSet(ResourceSet newResourceSet)
setResourceSet in interface CDOResourcenewResourceSet - the new value of the 'Resource Set' attribute.CDOResource.getResourceSet()public URI getURIGen()
public URI getURI()
getURI in interface CDOResourcegetURI in interface CDOResourceNodegetURI in interface ResourcegetURI in class CDOResourceNodeImplCDOResource.setURI(URI),
EresourcePackage.getCDOResource_URI()public void setURIGen(URI newURI)
public void setURI(URI newURI)
setURI in interface CDOResourcesetURI in interface ResourcenewURI - the new value of the 'URI' attribute.CDOResource.getURI()public EList<EObject> getContents()
getContents in interface CDOResourcegetContents in interface ResourceEresourcePackage.getCDOResource_Contents()public void cdoInternalPostDetach(boolean remote)
CDOObjectImplCDOObjectImpl.cdoStore(). CDOObjectImpl.eStore() will redirect
you to the transient data.
cdoInternalPostDetach in interface InternalCDOObjectcdoInternalPostDetach in class CDOObjectImplpublic boolean isModified()
isModified in interface CDOResourceisModified in interface ResourceCDOResource.setModified(boolean),
EresourcePackage.getCDOResource_Modified()public void setModified(boolean newModified)
setModified in interface CDOResourcesetModified in interface ResourcenewModified - the new value of the 'Modified' attribute.CDOResource.isModified()public boolean isLoaded()
isLoaded in interface CDOResourceisLoaded in interface ResourceEresourcePackage.getCDOResource_Loaded()public boolean isTrackingModification()
isTrackingModification in interface CDOResourceisTrackingModification in interface ResourceCDOResource.setTrackingModification(boolean),
EresourcePackage.getCDOResource_TrackingModification()public void setTrackingModificationGen(boolean newTrackingModification)
public void setTrackingModification(boolean newTrackingModification)
setTrackingModification in interface CDOResourcesetTrackingModification in interface ResourcenewTrackingModification - the new value of the 'Tracking Modification' attribute.CDOResource.isTrackingModification()public EList<Resource.Diagnostic> getErrors()
getErrors in interface CDOResourcegetErrors in interface ResourceEresourcePackage.getCDOResource_Errors()public EList<Resource.Diagnostic> getWarnings()
getWarnings in interface CDOResourcegetWarnings in interface ResourceEresourcePackage.getCDOResource_Warnings()public long getTimeStamp()
getTimeStamp in interface CDOResourcegetTimeStamp in interface ResourceCDOResource.setTimeStamp(long),
EresourcePackage.getCDOResource_TimeStamp()public void setTimeStamp(long newTimeStamp)
setTimeStamp in interface CDOResourcesetTimeStamp in interface ResourcenewTimeStamp - the new value of the 'Time Stamp' attribute.CDOResource.getTimeStamp()public TreeIterator<EObject> getAllContents()
getAllContents in interface ResourceResourceImpl.getAllContents()public EObject getEObject(String uriFragment)
Note: This resource is not actually used to lookup the resulting object in CDO. Only the CDOView is used for this lookup! This means that this resource can be used to resolve any fragment with a CDOID of the associated CDOView.
getEObject in interface Resourcepublic Map<String,EObject> getIntrinsicIDToEObjectMap()
value
of its ID feature.
setIntrinsicIDToEObjectMap(java.util.Map) public void setIntrinsicIDToEObjectMap(Map<String,EObject> intrinsicIDToEObjectMap)
null.
The map will be lazily loaded by the getEObjectByID method.
It is up to the client to clear the cache when it becomes invalid,
e.g., when the ID of a previously mapped EObject is changed.
intrinsicIDToEObjectMap - the new map or null.getIntrinsicIDToEObjectMap()protected EObject getEObjectByID(String id)
protected TreeIterator<EObject> getAllProperContents(List<EObject> contents)
public String getURIFragment(EObject object)
getURIFragment in interface Resourcepublic boolean isLoading()
isLoading in interface Resource.Internalpublic void cdoInternalLoading(EObject object)
InternalCDOResourceobject contained within it is being loaded.
cdoInternalLoading in interface InternalCDOResourcepublic void cdoInternalLoadingDone(EObject object)
InternalCDOResourceobject contained within it has finished being loaded.
cdoInternalLoadingDone in interface InternalCDOResourcepublic void cdoInternalPreLoad()
cdoInternalPreLoad in interface InternalCDOLoadablecdoInternalPreLoad in class CDOObjectImpl
public void load(InputStream inputStream,
Map<?,?> options)
throws IOException
load in interface ResourceIOException
public void load(Map<?,?> options)
throws IOException
load in interface ResourceIOException
public void save(Map<?,?> options)
throws IOException
save in interface ResourceIOException
public void save(OutputStream outputStream,
Map<?,?> options)
throws IOException
save in interface ResourceIOExceptionpublic void unload()
unload in interface Resource
public void delete(Map<?,?> options)
throws IOException
delete in interface CDOResourceNodedelete in interface ResourceIOExceptionpublic void attached(EObject object)
attached in interface Resource.Internalpublic void detached(EObject object)
detached in interface Resource.Internal
public NotificationChain basicSetResourceSet(ResourceSet resourceSet,
NotificationChain notifications)
basicSetResourceSet in interface Resource.InternalResourceImpl.basicSetResourceSet(ResourceSet, NotificationChain)public boolean isExisting()
isExisting in interface CDOResourceprotected void setExisting(boolean existing)
protected EList<?> createList(EStructuralFeature eStructuralFeature)
createList in class CDOObjectImpl
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||