public class AttributeChangeMutation extends StructuralFeatureMutation<ESAttributeChangeMutation> implements ESAttributeChangeMutation
| Constructor and Description |
|---|
AttributeChangeMutation(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.
|
ESAttributeChangeMutation |
setNewValue(Object newValue)
Sets the value that should be used when changing the attribute.
|
ESAttributeChangeMutation |
setRandomChangeMode(ESRandomChangeMode mode)
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 AttributeChangeMutation(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 ESAttributeChangeMutation setNewValue(Object newValue)
setNewValue in interface ESAttributeChangeMutationnewValue - the value of the attributeESAttributeChangeMutation.setNewValue(java.lang.Object)public ESAttributeChangeMutation setRandomChangeMode(ESRandomChangeMode mode)
setRandomChangeMode in interface ESAttributeChangeMutationmode - the random change mode to be setESAttributeChangeMutation.setRandomChangeMode(org.eclipse.emf.emfstore.modelmutator.ESRandomChangeMode)Copyright © 2017. All rights reserved.