|
|||||||||
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<ESAttributeChangeMutation> org.eclipse.emf.emfstore.internal.modelmutator.mutation.AttributeChangeMutation
public class AttributeChangeMutation
A mutation, which adds, deletes, or reorders an attribute value of an object.
Constructor Summary | |
---|---|
AttributeChangeMutation(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. |
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. |
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 AttributeChangeMutation(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 ESAttributeChangeMutation setNewValue(Object newValue)
setNewValue
in interface ESAttributeChangeMutation
newValue
- the value of the attribute
ESAttributeChangeMutation.setNewValue(java.lang.Object)
public ESAttributeChangeMutation setRandomChangeMode(ESRandomChangeMode mode)
setRandomChangeMode
in interface ESAttributeChangeMutation
mode
- the random change mode to be set
ESAttributeChangeMutation.setRandomChangeMode(org.eclipse.emf.emfstore.modelmutator.ESRandomChangeMode)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |