org.eclipse.emf.emfstore.internal.server.model.versioning.operations.impl
Class AbstractOperationImpl

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.IdentifiableElementImpl
                  extended by org.eclipse.emf.emfstore.internal.server.model.versioning.operations.impl.AbstractOperationImpl
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, APIDelegate<ESOperation>, IdentifiableElement, AbstractOperation
Direct Known Subclasses:
CompositeOperationImpl, CreateDeleteOperationImpl, FeatureOperationImpl

public abstract class AbstractOperationImpl
extends IdentifiableElementImpl
implements AbstractOperation

An implementation of the model object ' Abstract Operation'.

The following features are implemented:


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.ecore.impl.EObjectImpl
ELAST_EOBJECT_FLAG
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Method Summary
 ModelElementId basicGetModelElementId()
           
 org.eclipse.emf.common.notify.NotificationChain basicSetModelElementId(ModelElementId newModelElementId, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 ESOperation createAPI()
          Creates the API interface for this class.
 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)
           
 Set<ModelElementId> getAllInvolvedModelElements()
          Get all model elements that are involved in the operation.
 Date getClientDate()
           
 ModelElementId getModelElementId()
           
 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()
           
abstract  AbstractOperation reverse()
          Reverse the operation.
 void setAccepted(boolean newAccepted)
           
 void setClientDate(Date newClientDate)
           
 void setModelElementId(ModelElementId newModelElementId)
           
 ESOperation toAPI()
          Returns the API interface of this class.
 String toString()
           
 
Methods inherited from class org.eclipse.emf.emfstore.internal.common.model.impl.IdentifiableElementImpl
getIdentifier, setIdentifier
 
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
 
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.server.model.versioning.operations.AbstractOperation
apply, getLeafOperations
 
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.ecore.InternalEObject
eNotificationRequired
 

Method Detail

toAPI

public ESOperation toAPI()
Description copied from interface: APIDelegate
Returns the API interface of this class.

Specified by:
toAPI in interface APIDelegate<ESOperation>
Returns:
the API interface of this class

createAPI

public ESOperation createAPI()
Description copied from interface: APIDelegate
Creates the API interface for this class.

Specified by:
createAPI in interface APIDelegate<ESOperation>
Returns:
the API interface of this class

getModelElementId

public ModelElementId getModelElementId()

Specified by:
getModelElementId in interface AbstractOperation
Returns:
the value of the 'Model Element Id' containment reference.
See Also:
AbstractOperation.setModelElementId(ModelElementId), OperationsPackage.getAbstractOperation_ModelElementId()

basicGetModelElementId

public ModelElementId basicGetModelElementId()


basicSetModelElementId

public org.eclipse.emf.common.notify.NotificationChain basicSetModelElementId(ModelElementId newModelElementId,
                                                                              org.eclipse.emf.common.notify.NotificationChain msgs)


setModelElementId

public void setModelElementId(ModelElementId newModelElementId)

Specified by:
setModelElementId in interface AbstractOperation
Parameters:
newModelElementId - the new value of the 'Model Element Id' containment reference.
See Also:
AbstractOperation.getModelElementId()

isAccepted

public boolean isAccepted()

Specified by:
isAccepted in interface AbstractOperation
Returns:
the value of the 'Accepted' attribute.
See Also:
AbstractOperation.setAccepted(boolean), OperationsPackage.getAbstractOperation_Accepted()

setAccepted

public void setAccepted(boolean newAccepted)

Specified by:
setAccepted in interface AbstractOperation
Parameters:
newAccepted - the new value of the 'Accepted' attribute.
See Also:
AbstractOperation.isAccepted()

getClientDate

public Date getClientDate()

Specified by:
getClientDate in interface AbstractOperation
Returns:
the value of the 'Client Date' attribute.
See Also:
AbstractOperation.setClientDate(Date), OperationsPackage.getAbstractOperation_ClientDate()

setClientDate

public void setClientDate(Date newClientDate)

Specified by:
setClientDate in interface AbstractOperation
Parameters:
newClientDate - the new value of the 'Client Date' attribute.
See Also:
AbstractOperation.getClientDate()

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

reverse

public abstract 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.

Specified by:
reverse in interface AbstractOperation
Returns:
the reversed operation

eGet

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

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

eSet

public void eSet(int featureID,
                 Object newValue)

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

eUnset

public void eUnset(int featureID)

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

eIsSet

public boolean eIsSet(int featureID)

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

toString

public String toString()

Overrides:
toString in class IdentifiableElementImpl

getOperationId

public OperationId getOperationId()
Get the operations id.

Specified by:
getOperationId in interface AbstractOperation
Returns:
the id

getAllInvolvedModelElements

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

Specified by:
getAllInvolvedModelElements in interface AbstractOperation
Returns:
a set of model element ids
See Also:
AbstractOperation.getAllInvolvedModelElements()

getOtherInvolvedModelElements

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

Specified by:
getOtherInvolvedModelElements in interface AbstractOperation
Returns:
a set of model element ids
See Also:
AbstractOperation.getOtherInvolvedModelElements()


Copyright © 2015. All Rights Reserved.