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

All Superinterfaces:
APIDelegate<ESOperation>, org.eclipse.emf.ecore.EObject, IdentifiableElement, org.eclipse.emf.common.notify.Notifier
All Known Subinterfaces:
AttributeOperation, CompositeOperation, CreateDeleteOperation, FeatureOperation, MultiAttributeMoveOperation, MultiAttributeOperation, MultiAttributeSetOperation, MultiReferenceMoveOperation, MultiReferenceOperation, MultiReferenceSetOperation, ReferenceOperation, SemanticCompositeOperation, SingleReferenceOperation
All Known Implementing Classes:
AbstractOperationImpl, AttributeOperationImpl, CompositeOperationImpl, CreateDeleteOperationImpl, FeatureOperationImpl, MultiAttributeMoveOperationImpl, MultiAttributeOperationImpl, MultiAttributeSetOperationImpl, MultiReferenceMoveOperationImpl, MultiReferenceOperationImpl, MultiReferenceSetOperationImpl, ReferenceOperationImpl, SemanticCompositeOperationImpl, SingleReferenceOperationImpl

public interface AbstractOperation
extends IdentifiableElement, APIDelegate<ESOperation>

A representation of the model object ' Abstract Operation'.

See Also:
OperationsPackage.getAbstractOperation()

Method Summary
 void apply(IdEObjectCollection project)
          Apply an operation to the given project if it can be applied.
 Set<ModelElementId> getAllInvolvedModelElements()
          Get all model elements that are involved in the operation.
 Date getClientDate()
          Returns the value of the 'Client Date' attribute.
 List<AbstractOperation> getLeafOperations()
          Get all operations that are a leaf operation.
 ModelElementId getModelElementId()
          Returns the value of the 'Model Element Id' containment reference.
 OperationId getOperationId()
          Get the operations id.
 Set<ModelElementId> getOtherInvolvedModelElements()
          Get all model elements that are involved in the operation other than the element the operation is directly operating on.
 boolean isAccepted()
          Returns the value of the 'Accepted' attribute.
 AbstractOperation reverse()
          Reverse the operation.
 void setAccepted(boolean value)
          Sets the value of the ' Accepted' attribute.
 void setClientDate(Date value)
          Sets the value of the ' Client Date' attribute.
 void setModelElementId(ModelElementId value)
          Sets the value of the ' Model Element Id' containment reference.
 
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

getModelElementId

ModelElementId getModelElementId()
Returns the value of the 'Model Element Id' containment reference.

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

Returns:
the value of the 'Model Element Id' containment reference.
See Also:
setModelElementId(ModelElementId), OperationsPackage.getAbstractOperation_ModelElementId()

setModelElementId

void setModelElementId(ModelElementId value)
Sets the value of the ' Model Element Id' containment reference.

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

isAccepted

boolean isAccepted()
Returns the value of the 'Accepted' attribute.

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

Returns:
the value of the 'Accepted' attribute.
See Also:
setAccepted(boolean), OperationsPackage.getAbstractOperation_Accepted()

setAccepted

void setAccepted(boolean value)
Sets the value of the ' Accepted' attribute.

Parameters:
value - the new value of the 'Accepted' attribute.
See Also:
isAccepted()

getClientDate

Date getClientDate()
Returns the value of the 'Client Date' attribute.

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

Returns:
the value of the 'Client Date' attribute.
See Also:
setClientDate(Date), OperationsPackage.getAbstractOperation_ClientDate()

setClientDate

void setClientDate(Date value)
Sets the value of the ' Client Date' attribute.

Parameters:
value - the new value of the 'Client Date' attribute.
See Also:
getClientDate()

apply

void apply(IdEObjectCollection project)
Apply an operation to the given project if it can be applied. Apply will silently fail if the operation can not be applied because the given project can not support the operation (e.g. element is missing). To make sure an operation can be applied you can use canApply().

Parameters:
project - the project

reverse

AbstractOperation reverse()
Reverse the operation. The reversed operation is build such that applying this operation and then the reversed operation to a project does not change the project in total effect.

Returns:
the reversed operation

getOperationId

OperationId getOperationId()
Get the operations id.

Returns:
the id

getAllInvolvedModelElements

Set<ModelElementId> getAllInvolvedModelElements()
Get all model elements that are involved in the operation.

Returns:
a set of model element ids

getOtherInvolvedModelElements

Set<ModelElementId> getOtherInvolvedModelElements()
Get all model elements that are involved in the operation other than the element the operation is directly operating on.

Returns:
a set of model element ids

getLeafOperations

List<AbstractOperation> getLeafOperations()
Get all operations that are a leaf operation. In case this operation is not containing any other operations it will return itself.

Returns:
a list of leaf operations


Copyright © 2015. All Rights Reserved.