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

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
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, APIDelegate<ESOperation>, IdentifiableElement, AbstractOperation, FeatureOperation
Direct Known Subclasses:
AttributeOperationImpl, MultiAttributeMoveOperationImpl, MultiAttributeOperationImpl, MultiAttributeSetOperationImpl, MultiReferenceMoveOperationImpl, ReferenceOperationImpl

public abstract class FeatureOperationImpl
extends AbstractOperationImpl
implements FeatureOperation

An implementation of the model object ' Feature 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
 Object eGet(int featureID, boolean resolve, boolean coreType)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, Object newValue)
           
 void eUnset(int featureID)
           
 org.eclipse.emf.ecore.EStructuralFeature getFeature(org.eclipse.emf.ecore.EObject modelElement)
          Get the feature from the eclass of the given model element.
 org.eclipse.emf.ecore.EStructuralFeature getFeature(Project project)
          Get the feature from the Eclass of the model element identified by the model element of the operation.
 String getFeatureName()
           
 List<AbstractOperation> getLeafOperations()
          Get all operations that are a leaf operation.
 UnsetType getUnset()
           
 AbstractOperation reverse()
          Reverse the operation.
 void setFeatureName(String newFeatureName)
           
 void setUnset(UnsetType newUnset)
           
 String toString()
           
 
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.AbstractOperation
apply, getAllInvolvedModelElements, getClientDate, 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

getFeatureName

public String getFeatureName()

Specified by:
getFeatureName in interface FeatureOperation
Returns:
the value of the 'Feature Name' attribute.
See Also:
FeatureOperation.setFeatureName(String), OperationsPackage.getFeatureOperation_FeatureName()

setFeatureName

public void setFeatureName(String newFeatureName)

Specified by:
setFeatureName in interface FeatureOperation
Parameters:
newFeatureName - the new value of the 'Feature Name' attribute.
See Also:
FeatureOperation.getFeatureName()

getUnset

public UnsetType getUnset()

Specified by:
getUnset in interface FeatureOperation
Returns:
the value of the 'Unset' attribute.
See Also:
UnsetType, FeatureOperation.setUnset(UnsetType), OperationsPackage.getFeatureOperation_Unset()

setUnset

public void setUnset(UnsetType newUnset)

Specified by:
setUnset in interface FeatureOperation
Parameters:
newUnset - the new value of the 'Unset' attribute.
See Also:
UnsetType, FeatureOperation.getUnset()

eGet

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

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

eSet

public void eSet(int featureID,
                 Object newValue)

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

eUnset

public void eUnset(int featureID)

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

eIsSet

public boolean eIsSet(int featureID)

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

toString

public String toString()

Overrides:
toString in class AbstractOperationImpl

getFeature

public org.eclipse.emf.ecore.EStructuralFeature getFeature(Project project)
                                                    throws UnkownFeatureException
Get the feature from the Eclass of the model element identified by the model element of the operation.

Specified by:
getFeature in interface FeatureOperation
Parameters:
project - the project
Returns:
the feature
Throws:
UnkownFeatureException - if the feature can not be found in the eclass of the corresponding model element
See Also:
FeatureOperation.getFeature(org.eclipse.emf.emfstore.internal.common.model.Project)

reverse

public 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
Specified by:
reverse in class AbstractOperationImpl
Returns:
the reversed operation
See Also:
AbstractOperationImpl.reverse()

getLeafOperations

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

Specified by:
getLeafOperations in interface AbstractOperation
Returns:
a list of leaf operations
See Also:
AbstractOperation.getLeafOperations()

getFeature

public org.eclipse.emf.ecore.EStructuralFeature getFeature(org.eclipse.emf.ecore.EObject modelElement)
                                                    throws UnkownFeatureException
Get the feature from the eclass of the given model element.

Specified by:
getFeature in interface FeatureOperation
Parameters:
modelElement - the model element
Returns:
the feature
Throws:
UnkownFeatureException - if the feature can not be found in the eclass of the corresponding model element
See Also:
FeatureOperation.getFeature(org.eclipse.emf.ecore.EObject)


Copyright © 2015. All Rights Reserved.