|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.client.model.impl.RemovedElementsCache
public class RemovedElementsCache
Caches removed elements.
Constructor Summary | |
---|---|
RemovedElementsCache(IdEObjectCollectionImpl collection)
Constructor. |
Method Summary | |
---|---|
void |
addRemovedElement(org.eclipse.emf.ecore.EObject rootElement,
Set<org.eclipse.emf.ecore.EObject> allModelElements,
List<SettingWithReferencedElement> crossReferences)
Adds a new deleted element to the cache. |
void |
clear()
Clears the cache. |
boolean |
contains(org.eclipse.emf.ecore.EObject modelElement)
Checks whether the given model element has been previously removed. |
ModelElementId |
getRemovedElementId(org.eclipse.emf.ecore.EObject removedElement)
Returns the id of the specified removed element. |
List<org.eclipse.emf.ecore.EObject> |
getRemovedRootElements()
Returns a list of all removed root elements. |
List<SettingWithReferencedElement> |
getRemovedRootElementToReferenceSetting(org.eclipse.emf.ecore.EObject modelElement)
Returns the saved settings of the specified model element. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemovedElementsCache(IdEObjectCollectionImpl collection)
collection
- an underlying IdEObjectCollection
Method Detail |
---|
public void addRemovedElement(org.eclipse.emf.ecore.EObject rootElement, Set<org.eclipse.emf.ecore.EObject> allModelElements, List<SettingWithReferencedElement> crossReferences)
rootElement
- the deleted elementallModelElements
- the deleted element and its contained elementscrossReferences
- in- and outgoing references of all model elementspublic List<org.eclipse.emf.ecore.EObject> getRemovedRootElements()
public boolean contains(org.eclipse.emf.ecore.EObject modelElement)
modelElement
- the model element that should be checked whether it has been removed
true
, if the model element has been removed, false
otherwisepublic ModelElementId getRemovedElementId(org.eclipse.emf.ecore.EObject removedElement)
removedElement
- The removed element whose id is requested
public List<SettingWithReferencedElement> getRemovedRootElementToReferenceSetting(org.eclipse.emf.ecore.EObject modelElement)
modelElement
- The model element whose settings are requested
public void clear()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |