org.eclipse.emf.emfstore.modelmutator
Interface ESMoveObjectMutation

All Superinterfaces:
ESContainmentChangeMutation<ESMoveObjectMutation>, ESMutation, ESStructuralFeatureMutation<ESMoveObjectMutation>
All Known Implementing Classes:
MoveObjectMutation

public interface ESMoveObjectMutation
extends ESContainmentChangeMutation<ESMoveObjectMutation>

A mutation, which moves an object from one container into another.

Since:
2.0
Author:
Philip Langer,

Method Summary
 org.eclipse.emf.ecore.EObject getEObjectToMove()
          Returns the EObject that will be or has been moved.
 org.eclipse.emf.ecore.EObject getSourceObject()
          Returns the selected or set source object from which this mutation will move or moved an object.
 ESMoveObjectMutation setEObjectToMove(org.eclipse.emf.ecore.EObject eObjectToMove)
          Sets the EObject to be moved.
 ESMoveObjectMutation setSourceFeature(org.eclipse.emf.ecore.EStructuralFeature sourceFeature)
          Sets the EStructuralFeature of a source object from which this mutation will move or moved an object.
 ESMoveObjectMutation setSourceObject(org.eclipse.emf.ecore.EObject sourceObject)
          Sets the EObject to be used as source object from which this mutation will move an object.
 
Methods inherited from interface org.eclipse.emf.emfstore.modelmutator.ESStructuralFeatureMutation
getExcludedTargetEClasses, getExcludedTargetFeatures, getExcludedTargetObjects, getTargetFeature, getTargetObject, setTargetFeature, setTargetObject
 
Methods inherited from interface org.eclipse.emf.emfstore.modelmutator.ESMutation
apply
 

Method Detail

setSourceFeature

ESMoveObjectMutation setSourceFeature(org.eclipse.emf.ecore.EStructuralFeature sourceFeature)
Sets the EStructuralFeature of a source object from which this mutation will move or moved an object.

Parameters:
sourceFeature - The feature of the source object through which the moved or to-be-moved object was or is contained.
Returns:
this mutation

getSourceObject

org.eclipse.emf.ecore.EObject getSourceObject()
Returns the selected or set source object from which this mutation will move or moved an object.

Returns:
the source object of the moved or to-be-moved object

getEObjectToMove

org.eclipse.emf.ecore.EObject getEObjectToMove()
Returns the EObject that will be or has been moved.

Returns:
the moved or to-be-moved object

setSourceObject

ESMoveObjectMutation setSourceObject(org.eclipse.emf.ecore.EObject sourceObject)
Sets the EObject to be used as source object from which this mutation will move an object.

Parameters:
sourceObject - the source object to be moved from.
Returns:
this mutation

setEObjectToMove

ESMoveObjectMutation setEObjectToMove(org.eclipse.emf.ecore.EObject eObjectToMove)
Sets the EObject to be moved.

Parameters:
eObjectToMove - the object to be moved
Returns:
this mutation


Copyright © 2015. All Rights Reserved.