M - the implementing API mutation typepublic abstract class StructuralFeatureMutation<M extends ESStructuralFeatureMutation<?>> extends Mutation implements ESStructuralFeatureMutation<M>
| Constructor and Description |
|---|
StructuralFeatureMutation(ESModelMutatorUtil util)
Creates a new mutation with the specified
util. |
| Modifier and Type | Method and Description |
|---|---|
Collection<org.eclipse.emf.ecore.EClass> |
getExcludedTargetEClasses()
Returns the collection of
EClasses to be excluded when selecting the target object. |
Collection<org.eclipse.emf.ecore.EStructuralFeature> |
getExcludedTargetFeatures()
Returns the collection of
features to be excluded from being selected as the target
feature. |
Collection<org.eclipse.emf.ecore.EObject> |
getExcludedTargetObjects()
Returns the collection of
EObjects to be excluded from being selected as the target object. |
org.eclipse.emf.ecore.EStructuralFeature |
getTargetFeature()
Returns the
EStructuralFeature of a target object that will or has been mutated. |
org.eclipse.emf.ecore.EObject |
getTargetObject()
Returns the selected or set target object that will or has been mutated.
|
M |
setTargetFeature(org.eclipse.emf.ecore.EStructuralFeature targetFeature)
Sets the
EStructuralFeature of a target object that will be mutated. |
M |
setTargetObject(org.eclipse.emf.ecore.EObject targetObject)
Sets the
EObject to be used as target object. |
apply, cloneequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplypublic StructuralFeatureMutation(ESModelMutatorUtil util)
util.util - The model mutator util used for accessing the model to be mutated.public Collection<org.eclipse.emf.ecore.EClass> getExcludedTargetEClasses()
EClasses to be excluded when selecting the target object.
That is, EObjects are excluded from being selected as target object if they are an instance of an EClass
contained in this collection. The returned collection is changeable. Add items using
getExcludedTargetEClasses().add.
getExcludedTargetEClasses in interface ESStructuralFeatureMutation<M extends ESStructuralFeatureMutation<?>>ESStructuralFeatureMutation.getExcludedTargetEClasses()public Collection<org.eclipse.emf.ecore.EStructuralFeature> getExcludedTargetFeatures()
features to be excluded from being selected as the target
feature.
The returned collection is changeable. Add items using getExcludedTargetFeatures().add.
getExcludedTargetFeatures in interface ESStructuralFeatureMutation<M extends ESStructuralFeatureMutation<?>>ESStructuralFeatureMutation.getExcludedTargetFeatures()public Collection<org.eclipse.emf.ecore.EObject> getExcludedTargetObjects()
EObjects to be excluded from being selected as the target object.
The returned collection is changeable. Add items using getExcludedTargetObjects().add.
getExcludedTargetObjects in interface ESStructuralFeatureMutation<M extends ESStructuralFeatureMutation<?>>ESStructuralFeatureMutation.getExcludedTargetObjects()public M setTargetObject(org.eclipse.emf.ecore.EObject targetObject)
EObject to be used as target object.setTargetObject in interface ESStructuralFeatureMutation<M extends ESStructuralFeatureMutation<?>>targetObject - the target object to be mutatedESStructuralFeatureMutation.setTargetObject(org.eclipse.emf.ecore.EObject)public org.eclipse.emf.ecore.EObject getTargetObject()
getTargetObject in interface ESStructuralFeatureMutation<M extends ESStructuralFeatureMutation<?>>ESStructuralFeatureMutation.getTargetObject()public M setTargetFeature(org.eclipse.emf.ecore.EStructuralFeature targetFeature)
EStructuralFeature of a target object that will be mutated.setTargetFeature in interface ESStructuralFeatureMutation<M extends ESStructuralFeatureMutation<?>>targetFeature - the feature of the target object to be mutatedESStructuralFeatureMutation.setTargetFeature(org.eclipse.emf.ecore.EStructuralFeature)public org.eclipse.emf.ecore.EStructuralFeature getTargetFeature()
EStructuralFeature of a target object that will or has been mutated.getTargetFeature in interface ESStructuralFeatureMutation<M extends ESStructuralFeatureMutation<?>>ESStructuralFeatureMutation.getTargetFeature()Copyright © 2017. All rights reserved.