|
|||||||||
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 CDOResourceLeafImpl
public Resource.Internal eDirectResource()
eDirectResource
in interface InternalEObject
eDirectResource
in class CDOObjectImpl
public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass)
eDerivedStructuralFeatureID
in interface InternalEObject
eDerivedStructuralFeatureID
in class BasicEObjectImpl
public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass)
eBaseStructuralFeatureID
in interface InternalEObject
eBaseStructuralFeatureID
in class BasicEObjectImpl
public boolean isRoot()
isRoot
in interface CDOResourceNode
public void setRoot(boolean root)
public ResourceSet getResourceSet()
getResourceSet
in interface CDOResource
getResourceSet
in interface Resource
CDOResource.setResourceSet(ResourceSet)
,
EresourcePackage.getCDOResource_ResourceSet()
public void setResourceSet(ResourceSet newResourceSet)
setResourceSet
in interface CDOResource
newResourceSet
- the new value of the 'Resource Set' attribute.CDOResource.getResourceSet()
public URI getURIGen()
public URI getURI()
getURI
in interface CDOResource
getURI
in interface CDOResourceNode
getURI
in interface Resource
getURI
in class CDOResourceNodeImpl
CDOResource.setURI(URI)
,
EresourcePackage.getCDOResource_URI()
public void setURIGen(URI newURI)
public void setURI(URI newURI)
setURI
in interface CDOResource
setURI
in interface Resource
newURI
- the new value of the 'URI' attribute.CDOResource.getURI()
public EList<EObject> getContents()
getContents
in interface CDOResource
getContents
in interface Resource
EresourcePackage.getCDOResource_Contents()
public void cdoInternalPostDetach(boolean remote)
CDOObjectImpl
CDOObjectImpl.cdoStore()
. CDOObjectImpl.eStore()
will redirect
you to the transient data.
cdoInternalPostDetach
in interface InternalCDOObject
cdoInternalPostDetach
in class CDOObjectImpl
public boolean isModified()
isModified
in interface CDOResource
isModified
in interface Resource
CDOResource.setModified(boolean)
,
EresourcePackage.getCDOResource_Modified()
public void setModified(boolean newModified)
setModified
in interface CDOResource
setModified
in interface Resource
newModified
- the new value of the 'Modified' attribute.CDOResource.isModified()
public boolean isLoaded()
isLoaded
in interface CDOResource
isLoaded
in interface Resource
EresourcePackage.getCDOResource_Loaded()
public boolean isTrackingModification()
isTrackingModification
in interface CDOResource
isTrackingModification
in interface Resource
CDOResource.setTrackingModification(boolean)
,
EresourcePackage.getCDOResource_TrackingModification()
public void setTrackingModificationGen(boolean newTrackingModification)
public void setTrackingModification(boolean newTrackingModification)
setTrackingModification
in interface CDOResource
setTrackingModification
in interface Resource
newTrackingModification
- the new value of the 'Tracking Modification' attribute.CDOResource.isTrackingModification()
public EList<Resource.Diagnostic> getErrors()
getErrors
in interface CDOResource
getErrors
in interface Resource
EresourcePackage.getCDOResource_Errors()
public EList<Resource.Diagnostic> getWarnings()
getWarnings
in interface CDOResource
getWarnings
in interface Resource
EresourcePackage.getCDOResource_Warnings()
public long getTimeStamp()
getTimeStamp
in interface CDOResource
getTimeStamp
in interface Resource
CDOResource.setTimeStamp(long)
,
EresourcePackage.getCDOResource_TimeStamp()
public void setTimeStamp(long newTimeStamp)
setTimeStamp
in interface CDOResource
setTimeStamp
in interface Resource
newTimeStamp
- the new value of the 'Time Stamp' attribute.CDOResource.getTimeStamp()
public TreeIterator<EObject> getAllContents()
getAllContents
in interface Resource
ResourceImpl.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 Resource
public 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 Resource
public boolean isLoading()
isLoading
in interface Resource.Internal
public void cdoInternalLoading(EObject object)
InternalCDOResource
object
contained within it is being loaded.
cdoInternalLoading
in interface InternalCDOResource
public void cdoInternalLoadingDone(EObject object)
InternalCDOResource
object
contained within it has finished being loaded.
cdoInternalLoadingDone
in interface InternalCDOResource
public void cdoInternalPreLoad()
cdoInternalPreLoad
in interface InternalCDOLoadable
cdoInternalPreLoad
in class CDOObjectImpl
public void load(InputStream inputStream, Map<?,?> options) throws IOException
load
in interface Resource
IOException
public void load(Map<?,?> options) throws IOException
load
in interface Resource
IOException
public void save(Map<?,?> options) throws IOException
save
in interface Resource
IOException
public void save(OutputStream outputStream, Map<?,?> options) throws IOException
save
in interface Resource
IOException
public void unload()
unload
in interface Resource
public void delete(Map<?,?> options) throws IOException
delete
in interface CDOResourceNode
delete
in interface Resource
IOException
public void attached(EObject object)
attached
in interface Resource.Internal
public void detached(EObject object)
detached
in interface Resource.Internal
public NotificationChain basicSetResourceSet(ResourceSet resourceSet, NotificationChain notifications)
basicSetResourceSet
in interface Resource.Internal
ResourceImpl.basicSetResourceSet(ResourceSet, NotificationChain)
public boolean isExisting()
isExisting
in interface CDOResource
protected 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 |