public class ReferenceChangeMutation extends StructuralFeatureMutation<ESReferenceChangeMutation> implements ESReferenceChangeMutation
| Constructor and Description |
|---|
ReferenceChangeMutation(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.
|
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.
|
getExcludedTargetEClasses, getExcludedTargetFeatures, getExcludedTargetObjects, getTargetFeature, getTargetObject, setTargetFeature, setTargetObjectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExcludedTargetEClasses, getExcludedTargetFeatures, getExcludedTargetObjects, getTargetFeature, getTargetObject, setTargetFeature, setTargetObjectpublic ReferenceChangeMutation(ESModelMutatorUtil util)
util.util - The model mutator util used for accessing the model to be mutated.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()public ESReferenceChangeMutation setRandomChangeMode(ESRandomChangeMode randomChangeMode)
setRandomChangeMode in interface ESReferenceChangeMutationrandomChangeMode - the random change mode to be setESReferenceChangeMutation.setRandomChangeMode(org.eclipse.emf.emfstore.modelmutator.ESRandomChangeMode)public ESReferenceChangeMutation setNewReferenceValue(org.eclipse.emf.ecore.EObject newValue)
setNewReferenceValue in interface ESReferenceChangeMutationnewValue - the value of the referenceESReferenceChangeMutation.setNewReferenceValue(org.eclipse.emf.ecore.EObject)Copyright © 2017. All rights reserved.