|
|||||||||
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<ESReferenceChangeMutation> org.eclipse.emf.emfstore.internal.modelmutator.mutation.ReferenceChangeMutation
public class ReferenceChangeMutation
A mutation, which changes reference values.
Constructor Summary | |
---|---|
ReferenceChangeMutation(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. |
ESReferenceChangeMutation |
setNewReferenceValue(org.eclipse.emf.ecore.EObject newValue)
Sets the value that should be used when changing the reference. |
ESReferenceChangeMutation |
setRandomChangeMode(ESRandomChangeMode randomChangeMode)
Sets the change mode for this attribute change. |
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 ReferenceChangeMutation(ESModelMutatorUtil util)
util
.
util
- The model mutator util used for accessing the model to be mutated.Method Detail |
---|
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()
public ESReferenceChangeMutation setRandomChangeMode(ESRandomChangeMode randomChangeMode)
setRandomChangeMode
in interface ESReferenceChangeMutation
randomChangeMode
- the random change mode to be set
ESReferenceChangeMutation.setRandomChangeMode(org.eclipse.emf.emfstore.modelmutator.ESRandomChangeMode)
public ESReferenceChangeMutation setNewReferenceValue(org.eclipse.emf.ecore.EObject newValue)
setNewReferenceValue
in interface ESReferenceChangeMutation
newValue
- the value of the reference
ESReferenceChangeMutation.setNewReferenceValue(org.eclipse.emf.ecore.EObject)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |