public class RemovedElementsCache extends Object
| Constructor and Description |
|---|
RemovedElementsCache(IdEObjectCollectionImpl collection)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public RemovedElementsCache(IdEObjectCollectionImpl collection)
collection - an underlying IdEObjectCollectionpublic 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 removedtrue, if the model element has been removed, false otherwisepublic ModelElementId getRemovedElementId(org.eclipse.emf.ecore.EObject removedElement)
removedElement - The removed element whose id is requestedpublic List<SettingWithReferencedElement> getRemovedRootElementToReferenceSetting(org.eclipse.emf.ecore.EObject modelElement)
modelElement - The model element whose settings are requestedpublic void clear()
Copyright © 2017. All rights reserved.