public class AddObjectMutation extends ContainmentChangeMutation<ESAddObjectMutation> implements ESAddObjectMutation
| Constructor and Description |
|---|
AddObjectMutation(ESModelMutatorUtil util)
Creates a new mutation with the specified
util. |
| Modifier and Type | Method and Description |
|---|---|
void |
apply()
Applies this mutation and returns whether it succeeded in being applied.
|
Mutation |
clone()
Mutations must follow the prototype pattern as org.eclipse.emf.emfstore.internal.modelmutator.api.ModelMutator
will clone pre-configured mutations before
they will be completed and applied.
|
org.eclipse.emf.ecore.EObject |
getEObjectToAdd()
Returns the object added or to be added by this mutation.
|
AddObjectMutation |
setEObjectToAdd(org.eclipse.emf.ecore.EObject eObjectToAdd)
Sets the object to be added by this mutation.
|
getExcludedTargetEClasses, getExcludedTargetFeatures, getExcludedTargetObjects, getTargetFeature, getTargetObject, setTargetFeature, setTargetObjectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExcludedTargetEClasses, getExcludedTargetFeatures, getExcludedTargetObjects, getTargetFeature, getTargetObject, setTargetFeature, setTargetObjectpublic AddObjectMutation(ESModelMutatorUtil util)
util.util - The model mutator util used for accessing the model to be mutated.public AddObjectMutation setEObjectToAdd(org.eclipse.emf.ecore.EObject eObjectToAdd)
setEObjectToAdd in interface ESAddObjectMutationeObjectToAdd - the object to be addedESAddObjectMutation.setEObjectToAdd(org.eclipse.emf.ecore.EObject)public org.eclipse.emf.ecore.EObject getEObjectToAdd()
getEObjectToAdd in interface ESAddObjectMutationESAddObjectMutation.getEObjectToAdd()public Mutation clone()
clone in class MutationMutation.clone()public void apply()
throws ESMutationException
apply in interface ESMutationapply in class MutationESMutationException - thrown if the mutation failed.Mutation.apply()Copyright © 2017. All rights reserved.