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

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
                      extended by org.eclipse.emf.emfstore.internal.server.model.versioning.operations.impl.FeatureOperationImpl
                          extended by org.eclipse.emf.emfstore.internal.server.model.versioning.operations.impl.AttributeOperationImpl
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, APIDelegate<ESOperation>, IdentifiableElement, AbstractOperation, AttributeOperation, FeatureOperation

public class AttributeOperationImpl
extends FeatureOperationImpl
implements AttributeOperation

An implementation of the model object ' Attribute 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
 void apply(IdEObjectCollection project)
          Apply an operation to the given project if it can be applied.
 Object eGet(int featureID, boolean resolve, boolean coreType)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, Object newValue)
           
 void eUnset(int featureID)
           
 Object getNewValue()
           
 Object getOldValue()
           
 AbstractOperation reverse()
          Reverse the operation.
 void setNewValue(Object newNewValue)
           
 void setOldValue(Object newOldValue)
           
 String toString()
           
 
Methods inherited from class org.eclipse.emf.emfstore.internal.server.model.versioning.operations.impl.FeatureOperationImpl
getFeature, getFeature, getFeatureName, getLeafOperations, getUnset, setFeatureName, setUnset
 
Methods inherited from class org.eclipse.emf.emfstore.internal.server.model.versioning.operations.impl.AbstractOperationImpl
basicGetModelElementId, basicSetModelElementId, createAPI, eInverseRemove, getAllInvolvedModelElements, getClientDate, getModelElementId, getOperationId, getOtherInvolvedModelElements, isAccepted, setAccepted, setClientDate, setModelElementId, toAPI
 
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.FeatureOperation
getFeature, getFeature, getFeatureName, getUnset, setFeatureName, setUnset
 
Methods inherited from interface org.eclipse.emf.emfstore.internal.server.model.versioning.operations.AbstractOperation
getAllInvolvedModelElements, getClientDate, getLeafOperations, getModelElementId, getOperationId, getOtherInvolvedModelElements, isAccepted, 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
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Method Detail

getOldValue

public Object getOldValue()

Specified by:
getOldValue in interface AttributeOperation
Returns:
the value of the 'Old Value' attribute.
See Also:
AttributeOperation.setOldValue(Object), OperationsPackage.getAttributeOperation_OldValue()

setOldValue

public void setOldValue(Object newOldValue)

Specified by:
setOldValue in interface AttributeOperation
Parameters:
newOldValue - the new value of the 'Old Value' attribute.
See Also:
AttributeOperation.getOldValue()

getNewValue

public Object getNewValue()

Specified by:
getNewValue in interface AttributeOperation
Returns:
the value of the 'New Value' attribute.
See Also:
AttributeOperation.setNewValue(Object), OperationsPackage.getAttributeOperation_NewValue()

setNewValue

public void setNewValue(Object newNewValue)

Specified by:
setNewValue in interface AttributeOperation
Parameters:
newNewValue - the new value of the 'New Value' attribute.
See Also:
AttributeOperation.getNewValue()

eGet

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

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

eSet

public void eSet(int featureID,
                 Object newValue)

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

eUnset

public void eUnset(int featureID)

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

eIsSet

public boolean eIsSet(int featureID)

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

toString

public String toString()

Overrides:
toString in class FeatureOperationImpl

apply

public void apply(IdEObjectCollection project)
Description copied from interface: AbstractOperation
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().

Specified by:
apply in interface AbstractOperation
Parameters:
project - the project

reverse

public AbstractOperation reverse()
Description copied from class: FeatureOperationImpl
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
Overrides:
reverse in class FeatureOperationImpl
Returns:
the reversed operation
See Also:
AbstractOperationImpl.reverse()


Copyright © 2015. All Rights Reserved.