org.eclipse.emf.emfstore.modelmutator
Interface ESStructuralFeatureMutation<T extends ESStructuralFeatureMutation<?>>

Type Parameters:
T - a subtype of ESStructuralFeatureMutation
All Superinterfaces:
ESMutation
All Known Subinterfaces:
ESAddObjectMutation, ESAttributeChangeMutation, ESContainmentChangeMutation<T>, ESDeleteObjectMutation, ESFeatureMapKeyMutation, ESFeatureMapValueMutation, ESMoveObjectMutation, ESReferenceChangeMutation
All Known Implementing Classes:
AddObjectMutation, AttributeChangeMutation, ContainmentChangeMutation, DeleteObjectMutation, FeatureMapKeyMutation, FeatureMapValueMutation, MoveObjectMutation, ReferenceChangeMutation, StructuralFeatureMutation

public interface ESStructuralFeatureMutation<T extends ESStructuralFeatureMutation<?>>
extends ESMutation

An abstract mutation for changing structural feature values.

Since:
2.0
Author:
Philip Langer, emueller

Method Summary
 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.
 T setTargetFeature(org.eclipse.emf.ecore.EStructuralFeature targetFeature)
          Sets the EStructuralFeature of a target object that will be mutated.
 T setTargetObject(org.eclipse.emf.ecore.EObject targetObject)
          Sets the EObject to be used as target object.
 
Methods inherited from interface org.eclipse.emf.emfstore.modelmutator.ESMutation
apply
 

Method Detail

getTargetObject

org.eclipse.emf.ecore.EObject getTargetObject()
Returns the selected or set target object that will or has been mutated.

Returns:
the target object

getTargetFeature

org.eclipse.emf.ecore.EStructuralFeature getTargetFeature()
Returns the EStructuralFeature of a target object that will or has been mutated.

Returns:
the target feature

getExcludedTargetEClasses

Collection<org.eclipse.emf.ecore.EClass> getExcludedTargetEClasses()
Returns the collection of 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.

Returns:
the collection of excluded EClasses

getExcludedTargetFeatures

Collection<org.eclipse.emf.ecore.EStructuralFeature> getExcludedTargetFeatures()
Returns the collection of features to be excluded from being selected as the target feature.

The returned collection is changeable. Add items using getExcludedTargetFeatures().add.

Returns:
the collection of excluded features

getExcludedTargetObjects

Collection<org.eclipse.emf.ecore.EObject> getExcludedTargetObjects()
Returns the collection of EObjects to be excluded from being selected as the target object.

The returned collection is changeable. Add items using getExcludedTargetObjects().add.

Returns:
the collection of EObjects

setTargetObject

T setTargetObject(org.eclipse.emf.ecore.EObject targetObject)
Sets the EObject to be used as target object.

Parameters:
targetObject - the target object to be mutated
Returns:
this mutation

setTargetFeature

T setTargetFeature(org.eclipse.emf.ecore.EStructuralFeature targetFeature)
Sets the EStructuralFeature of a target object that will be mutated.

Parameters:
targetFeature - the feature of the target object to be mutated
Returns:
this mutation


Copyright © 2015. All Rights Reserved.