public class UseSuperClass extends OperationImplementation
Modifier and Type | Field and Description |
---|---|
List<org.eclipse.emf.ecore.EStructuralFeature> |
replaceBy |
org.eclipse.emf.ecore.EClass |
subClass |
org.eclipse.emf.ecore.EClass |
superClass |
List<org.eclipse.emf.ecore.EStructuralFeature> |
toReplace |
Constructor and Description |
---|
UseSuperClass() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkFeaturesSameMultiplicity() |
boolean |
checkFeaturesSameSize() |
boolean |
checkFeaturesSameType() |
boolean |
checkReplaceByInSuperClass(org.eclipse.emf.ecore.EStructuralFeature replaceBy) |
boolean |
checkToReplaceInSubClass(org.eclipse.emf.ecore.EStructuralFeature toReplace) |
void |
execute(Metamodel metamodel,
Model model)
Execute the operation.
|
checkAndExecute, checkPreconditions, checkRestriction, checkRestriction, initialize
public org.eclipse.emf.ecore.EClass subClass
public org.eclipse.emf.ecore.EClass superClass
public List<org.eclipse.emf.ecore.EStructuralFeature> toReplace
public List<org.eclipse.emf.ecore.EStructuralFeature> replaceBy
public boolean checkToReplaceInSubClass(org.eclipse.emf.ecore.EStructuralFeature toReplace)
public boolean checkReplaceByInSuperClass(org.eclipse.emf.ecore.EStructuralFeature replaceBy)
public boolean checkFeaturesSameSize()
public boolean checkFeaturesSameMultiplicity()
public boolean checkFeaturesSameType()
public void execute(Metamodel metamodel, Model model) throws MigrationException
MigrationException
Copyright © 2020. All rights reserved.