Class SplitAggregateByEntitiesRefactoring
- java.lang.Object
-
- org.contextmapper.dsl.refactoring.AbstractRefactoring
-
- org.contextmapper.dsl.refactoring.henshin.AbstractHenshinRefactoring
-
- org.contextmapper.dsl.refactoring.henshin.SplitAggregateByEntitiesRefactoring
-
- All Implemented Interfaces:
SemanticCMLRefactoring
public class SplitAggregateByEntitiesRefactoring extends AbstractHenshinRefactoring
-
-
Field Summary
-
Fields inherited from class org.contextmapper.dsl.refactoring.AbstractRefactoring
additionalResourcesToCheck, consistencyCheckResources, importedResources, model, rootResource
-
-
Constructor Summary
Constructors Constructor Description SplitAggregateByEntitiesRefactoring(java.lang.String aggregateName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getHenshinTransformationFilename()
Method has to be implemented to provide the name of the Henshin transformation file.protected CMLResource
getTransformationResource()
The root resource on which the refactoring has been started might not be the resource that has to be transformed (reference).protected java.lang.String
getTransformationUnitName()
Method has to be implemented to provide the transformation unit name of the henshin transformationprotected void
postProcessing(CMLResource resource)
Override this method in case you want execute some post-processing after the Henshin transformationprotected void
setUnitParameters(org.eclipse.emf.henshin.interpreter.UnitApplication refactoringUnit)
Override this method to provide the needed parameters for the given henshin transformationprotected void
throwTransformationError()
Override this method to provide refactoring-specific error message.-
Methods inherited from class org.contextmapper.dsl.refactoring.henshin.AbstractHenshinRefactoring
doRefactor
-
Methods inherited from class org.contextmapper.dsl.refactoring.AbstractRefactoring
addElementsToEList, addElementToEList, getAllBoundedContexts, getAllContextMaps, getAllDomains, getAllUserRequirements, getResource, persistChanges, refactor, refactor, removeElementFromEList
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.contextmapper.dsl.refactoring.SemanticCMLRefactoring
persistChanges, refactor, refactor
-
-
-
-
Method Detail
-
getHenshinTransformationFilename
protected java.lang.String getHenshinTransformationFilename()
Description copied from class:AbstractHenshinRefactoring
Method has to be implemented to provide the name of the Henshin transformation file.- Specified by:
getHenshinTransformationFilename
in classAbstractHenshinRefactoring
- Returns:
- Name of the Henshin transformation file.
-
getTransformationUnitName
protected java.lang.String getTransformationUnitName()
Description copied from class:AbstractHenshinRefactoring
Method has to be implemented to provide the transformation unit name of the henshin transformation- Specified by:
getTransformationUnitName
in classAbstractHenshinRefactoring
- Returns:
- The Henshin transformation unit name
-
setUnitParameters
protected void setUnitParameters(org.eclipse.emf.henshin.interpreter.UnitApplication refactoringUnit)
Description copied from class:AbstractHenshinRefactoring
Override this method to provide the needed parameters for the given henshin transformation- Overrides:
setUnitParameters
in classAbstractHenshinRefactoring
- Parameters:
refactoringUnit
- The Henshin transformation unit.
-
throwTransformationError
protected void throwTransformationError()
Description copied from class:AbstractHenshinRefactoring
Override this method to provide refactoring-specific error message.- Overrides:
throwTransformationError
in classAbstractHenshinRefactoring
-
postProcessing
protected void postProcessing(CMLResource resource)
Description copied from class:AbstractHenshinRefactoring
Override this method in case you want execute some post-processing after the Henshin transformation- Overrides:
postProcessing
in classAbstractHenshinRefactoring
- Parameters:
resource
- The resource already transformed by Henshin.
-
getTransformationResource
protected CMLResource getTransformationResource()
Description copied from class:AbstractHenshinRefactoring
The root resource on which the refactoring has been started might not be the resource that has to be transformed (reference). Implement this method to resolve the resource that has to be transformed by Henshin.- Specified by:
getTransformationResource
in classAbstractHenshinRefactoring
- Returns:
- the CML resource that shall be transformed
-
-