|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.modelmutator.mutation.Mutation org.eclipse.emf.emfstore.internal.modelmutator.mutation.StructuralFeatureMutation<M> org.eclipse.emf.emfstore.internal.modelmutator.mutation.ContainmentChangeMutation<ESAddObjectMutation> org.eclipse.emf.emfstore.internal.modelmutator.mutation.AddObjectMutation
public class AddObjectMutation
A mutation, which adds a new object into the model.
Constructor Summary | |
---|---|
AddObjectMutation(ESModelMutatorUtil util)
Creates a new mutation with the specified util . |
Method Summary | |
---|---|
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. |
Methods inherited from class org.eclipse.emf.emfstore.internal.modelmutator.mutation.StructuralFeatureMutation |
---|
getExcludedTargetEClasses, getExcludedTargetFeatures, getExcludedTargetObjects, getTargetFeature, getTargetObject, setTargetFeature, setTargetObject |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.emfstore.modelmutator.ESStructuralFeatureMutation |
---|
getExcludedTargetEClasses, getExcludedTargetFeatures, getExcludedTargetObjects, getTargetFeature, getTargetObject, setTargetFeature, setTargetObject |
Constructor Detail |
---|
public AddObjectMutation(ESModelMutatorUtil util)
util
.
util
- The model mutator util used for accessing the model to be mutated.Method Detail |
---|
public AddObjectMutation setEObjectToAdd(org.eclipse.emf.ecore.EObject eObjectToAdd)
setEObjectToAdd
in interface ESAddObjectMutation
eObjectToAdd
- the object to be added
ESAddObjectMutation.setEObjectToAdd(org.eclipse.emf.ecore.EObject)
public org.eclipse.emf.ecore.EObject getEObjectToAdd()
getEObjectToAdd
in interface ESAddObjectMutation
ESAddObjectMutation.getEObjectToAdd()
public Mutation clone()
clone
in class Mutation
Mutation.clone()
public void apply() throws ESMutationException
apply
in interface ESMutation
apply
in class Mutation
ESMutationException
- thrown if the mutation failed.Mutation.apply()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |