org.eclipse.emf.emfstore.internal.common.model.impl
Class ProjectImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by org.eclipse.emf.emfstore.internal.common.model.impl.IdEObjectCollectionImpl
                  extended by org.eclipse.emf.emfstore.internal.common.model.impl.NotifiableIdEObjectCollectionImpl
                      extended by org.eclipse.emf.emfstore.internal.common.model.impl.ProjectImpl
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, ESObserver, ESIdToEObjectMapping<ModelElementId>, ESObjectContainer<ModelElementId>, APIDelegate<ESModelElementIdToEObjectMappingImpl>, ESDisposable, IdEObjectCollection, ModelElementIdToEObjectMapping, NotifiableIdEObjectCollection, Project, IdEObjectCollectionChangeObserver

public class ProjectImpl
extends NotifiableIdEObjectCollectionImpl
implements Project

Author:
koegel, naughton, emueller

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
 
Fields inherited from class org.eclipse.emf.emfstore.internal.common.model.impl.IdEObjectCollectionImpl
MODELELEMENTID_GENERATOR_CLASS_ATTRIBUTE, MODELELEMENTID_GENERATOR_EXTENSIONPOINT
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
ELAST_EOBJECT_FLAG
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Method Summary
 void addCutElement(org.eclipse.emf.ecore.EObject eObject)
          Add a new cut element.
 ESModelElementIdToEObjectMappingImpl createAPI()
          Creates the API interface for this class.
 void delete()
          Deletes a project by notifying all project change observers about the deletion.
 Object eGet(int featureID, boolean resolve, boolean coreType)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, Object newValue)
           
 void eUnset(int featureID)
           
 Object getAdapter(Class adapter)
          this methods implements the adapter interface which is needed by the navigator.
 org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> getCutElements()
           
 org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> getModelElements()
           
 void initMapping()
          Initializes the ID caches of the collection, i.e.
 ESModelElementIdToEObjectMappingImpl toAPI()
          Returns the API interface of this class.
 
Methods inherited from class org.eclipse.emf.emfstore.internal.common.model.impl.NotifiableIdEObjectCollectionImpl
addIdEObjectCollectionChangeObserver, collectionDeleted, copy, getChangeNotifier, initMapping, modelElementAdded, modelElementRemoved, notify, removeIdEObjectCollectionChangeObserver, setUndetachable
 
Methods inherited from class org.eclipse.emf.emfstore.internal.common.model.impl.IdEObjectCollectionImpl
addModelElement, allocateModelElementIds, clearAllocatedCaches, contains, contains, deleteModelElement, disallocateModelElementIds, dispose, get, getAllModelElements, getAllModelElementsByClass, getAllModelElementsByClass, getAllModelElementsByClass, getAllModelElementsByClass, getDeletedModelElement, getDeletedModelElementId, getEObjectId, getEObjectToIdMapping, getIdToEObjectMapping, getModelElement, getModelElementId, getModelElementsByClass, removeModelElement, removeModelElementAndChildrenFromResource
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset, toString
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.emfstore.internal.common.model.NotifiableIdEObjectCollection
addIdEObjectCollectionChangeObserver, getChangeNotifier, removeIdEObjectCollectionChangeObserver
 
Methods inherited from interface org.eclipse.emf.emfstore.internal.common.model.IdEObjectCollection
addModelElement, allocateModelElementIds, clearAllocatedCaches, contains, contains, deleteModelElement, disallocateModelElementIds, getAllModelElements, getEObjectToIdMapping, getIdToEObjectMapping, getModelElement, getModelElementId, getModelElementsByClass, initMapping
 
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.emfstore.common.model.ESObjectContainer
getAllModelElementsByClass, getAllModelElementsByClass
 
Methods inherited from interface org.eclipse.emf.emfstore.common.model.ESIdToEObjectMapping
get
 
Methods inherited from interface org.eclipse.emf.emfstore.internal.common.model.util.IdEObjectCollectionChangeObserver
collectionDeleted, modelElementAdded, modelElementRemoved, notify
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Method Detail

getModelElements

public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> getModelElements()

Specified by:
getModelElements in interface ESObjectContainer<ModelElementId>
Specified by:
getModelElements in interface IdEObjectCollection
Specified by:
getModelElements in interface Project
Specified by:
getModelElements in class IdEObjectCollectionImpl
Returns:
a list containing the directly contained model elements within the container
See Also:
IdEObjectCollection.getModelElements()

getCutElements

public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> getCutElements()

Specified by:
getCutElements in interface Project
Returns:
the value of the 'Cut Elements' containment reference list.
See Also:
ModelPackage.getProject_CutElements()

eInverseRemove

public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                      int featureID,
                                                                      org.eclipse.emf.common.notify.NotificationChain msgs)

Overrides:
eInverseRemove in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eGet

public Object eGet(int featureID,
                   boolean resolve,
                   boolean coreType)

Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eGet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eSet

public void eSet(int featureID,
                 Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eUnset in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eIsSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

getAdapter

public Object getAdapter(Class adapter)
this methods implements the adapter interface which is needed by the navigator.

Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable
Parameters:
adapter - the adapter class
Returns:
the adapter

delete

public void delete()
Deletes a project by notifying all project change observers about the deletion.

Specified by:
delete in interface Project
See Also:
Project.delete()

addCutElement

public void addCutElement(org.eclipse.emf.ecore.EObject eObject)
Add a new cut element.

Specified by:
addCutElement in class NotifiableIdEObjectCollectionImpl
Parameters:
eObject - The new cut element.
See Also:
NotifiableIdEObjectCollectionImpl.addCutElement(org.eclipse.emf.ecore.EObject)

initMapping

public void initMapping()
Initializes the ID caches of the collection, i.e. the collection will call IdEObjectCollection.getModelElements() and for each model element the ModelElementId is fetched via IdEObjectCollection.getModelElementId(EObject). Then a mapping between the model element and its ModelElementId is created within the cache.

Specified by:
initMapping in interface IdEObjectCollection
Overrides:
initMapping in class NotifiableIdEObjectCollectionImpl
See Also:
NotifiableIdEObjectCollectionImpl.initMapping()

toAPI

public ESModelElementIdToEObjectMappingImpl toAPI()
Returns the API interface of this class.

Specified by:
toAPI in interface APIDelegate<ESModelElementIdToEObjectMappingImpl>
Returns:
the API interface of this class
See Also:
APIDelegate.toAPI()

createAPI

public ESModelElementIdToEObjectMappingImpl createAPI()
Creates the API interface for this class.

Specified by:
createAPI in interface APIDelegate<ESModelElementIdToEObjectMappingImpl>
Returns:
the API interface of this class
See Also:
APIDelegate.createAPI()


Copyright © 2015. All Rights Reserved.