org.eclipse.emf.emfstore.internal.server.model.versioning.operations
Interface CreateDeleteOperation

All Superinterfaces:
AbstractOperation, APIDelegate<ESOperation>, org.eclipse.emf.ecore.EObject, IdentifiableElement, org.eclipse.emf.common.notify.Notifier
All Known Implementing Classes:
CreateDeleteOperationImpl

public interface CreateDeleteOperation
extends AbstractOperation

A representation of the model object ' Create Delete Operation'.

The following features are supported:

See Also:
OperationsPackage.getCreateDeleteOperation()

Method Summary
 org.eclipse.emf.common.util.EMap<org.eclipse.emf.ecore.EObject,ModelElementId> getEObjectToIdMap()
          Returns the value of the 'EObject To Id Map' map.
 org.eclipse.emf.ecore.EObject getModelElement()
          Returns the value of the 'Model Element' containment reference.
 ModelElementId getParentofDeletedElement(Project project)
          Get the id of the previous parent of the deleted element.
 org.eclipse.emf.common.util.EList<ReferenceOperation> getSubOperations()
          Returns the value of the 'Sub Operations' containment reference list.
 boolean isDelete()
          Returns the value of the 'Delete' attribute.
 void setDelete(boolean value)
          Sets the value of the ' Delete' attribute.
 void setModelElement(org.eclipse.emf.ecore.EObject value)
          Sets the value of the ' Model Element' containment reference.
 
Methods inherited from interface org.eclipse.emf.emfstore.internal.server.model.versioning.operations.AbstractOperation
apply, getAllInvolvedModelElements, getClientDate, getLeafOperations, getModelElementId, getOperationId, getOtherInvolvedModelElements, isAccepted, reverse, setAccepted, setClientDate, setModelElementId
 
Methods inherited from interface org.eclipse.emf.emfstore.internal.common.model.IdentifiableElement
getIdentifier, setIdentifier
 
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.internal.common.api.APIDelegate
createAPI, toAPI
 

Method Detail

isDelete

boolean isDelete()
Returns the value of the 'Delete' attribute.

If the meaning of the 'Delete' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Delete' attribute.
See Also:
setDelete(boolean), OperationsPackage.getCreateDeleteOperation_Delete()

setDelete

void setDelete(boolean value)
Sets the value of the ' Delete' attribute.

Parameters:
value - the new value of the 'Delete' attribute.
See Also:
isDelete()

getModelElement

org.eclipse.emf.ecore.EObject getModelElement()
Returns the value of the 'Model Element' containment reference.

If the meaning of the 'Model Element' containment reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Model Element' containment reference.
See Also:
setModelElement(EObject), OperationsPackage.getCreateDeleteOperation_ModelElement()

setModelElement

void setModelElement(org.eclipse.emf.ecore.EObject value)
Sets the value of the ' Model Element' containment reference.

Parameters:
value - the new value of the 'Model Element' containment reference.
See Also:
getModelElement()

getSubOperations

org.eclipse.emf.common.util.EList<ReferenceOperation> getSubOperations()
Returns the value of the 'Sub Operations' containment reference list. The list contents are of type ReferenceOperation.

If the meaning of the 'Sub Operations' containment reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Sub Operations' containment reference list.
See Also:
OperationsPackage.getCreateDeleteOperation_SubOperations()

getEObjectToIdMap

org.eclipse.emf.common.util.EMap<org.eclipse.emf.ecore.EObject,ModelElementId> getEObjectToIdMap()
Returns the value of the 'EObject To Id Map' map. The key is of type EObject, and the value is of type ModelElementId,

If the meaning of the 'EObject To Id Map' map isn't clear, there really should be more of a description here...

Returns:
the value of the 'EObject To Id Map' map.
See Also:
OperationsPackage.getCreateDeleteOperation_EObjectToIdMap()

getParentofDeletedElement

ModelElementId getParentofDeletedElement(Project project)
Get the id of the previous parent of the deleted element. Returns null if the deleted element did not have a parent at the time of deletion or the parent cannot be determined anymore since it has also been removed from the given project.

Parameters:
project - the current project (needed to derive the parent)
Returns:
the element id


Copyright © 2015. All Rights Reserved.