|
|||||||||
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<ESDeleteObjectMutation> org.eclipse.emf.emfstore.internal.modelmutator.mutation.DeleteObjectMutation
public class DeleteObjectMutation
A mutation, which deletes a new object from the model.
Constructor Summary | |
---|---|
DeleteObjectMutation(ESModelMutatorUtil util)
Creates a new mutation with the specified util . |
|
DeleteObjectMutation(ESModelMutatorUtil util,
MutationTargetSelector selector)
Creates a new mutation with the specified util and the selector . |
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 |
getEObjectToDelete()
Returns the object deleted or to be deleted by this mutation. |
int |
getMaxNumberOfContainments()
Returns the maximum number of containments that the object selected for deletion may contain. |
void |
setEObjectToDelete(org.eclipse.emf.ecore.EObject eObjectToDelete)
Sets the object to be deleted by this mutation. |
DeleteObjectMutation |
setMaxNumberOfContainments(int maxNumberOfContainments)
Sets the maximum number of containments that the object selected for deletion may contain. |
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 DeleteObjectMutation(ESModelMutatorUtil util)
util
.
util
- The model mutator util used for accessing the model to be mutated.public DeleteObjectMutation(ESModelMutatorUtil util, MutationTargetSelector selector)
util
and the selector
.
util
- The model mutator util used for accessing the model to be mutated.selector
- The target selector for selecting the target container and feature.Method Detail |
---|
public DeleteObjectMutation setMaxNumberOfContainments(int maxNumberOfContainments)
setMaxNumberOfContainments
in interface ESDeleteObjectMutation
maxNumberOfContainments
- the maximum number of containments of the object to be deleted.
ESDeleteObjectMutation.setMaxNumberOfContainments(int)
public int getMaxNumberOfContainments()
public void setEObjectToDelete(org.eclipse.emf.ecore.EObject eObjectToDelete)
eObjectToDelete
- The object to be deleted.public org.eclipse.emf.ecore.EObject getEObjectToDelete()
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 |