Class AbstractHenshinRefactoring
- java.lang.Object
-
- org.contextmapper.dsl.refactoring.AbstractRefactoring
-
- org.contextmapper.dsl.refactoring.henshin.AbstractHenshinRefactoring
-
- All Implemented Interfaces:
SemanticCMLRefactoring
- Direct Known Subclasses:
SplitAggregateByEntitiesRefactoring
public abstract class AbstractHenshinRefactoring extends AbstractRefactoring implements SemanticCMLRefactoring
-
-
Field Summary
-
Fields inherited from class org.contextmapper.dsl.refactoring.AbstractRefactoring
additionalResourcesToCheck, consistencyCheckResources, importedResources, model, rootResource
-
-
Constructor Summary
Constructors Constructor Description AbstractHenshinRefactoring()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
doRefactor()
protected abstract java.lang.String
getHenshinTransformationFilename()
Method has to be implemented to provide the name of the Henshin transformation file.protected abstract CMLResource
getTransformationResource()
The root resource on which the refactoring has been started might not be the resource that has to be transformed (reference).protected abstract 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.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
-
doRefactor
protected void doRefactor()
- Specified by:
doRefactor
in classAbstractRefactoring
-
getTransformationResource
protected abstract CMLResource getTransformationResource()
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.- Returns:
- the CML resource that shall be transformed
-
getHenshinTransformationFilename
protected abstract java.lang.String getHenshinTransformationFilename()
Method has to be implemented to provide the name of the Henshin transformation file.- Returns:
- Name of the Henshin transformation file.
-
getTransformationUnitName
protected abstract java.lang.String getTransformationUnitName()
Method has to be implemented to provide the transformation unit name of the henshin transformation- Returns:
- The Henshin transformation unit name
-
setUnitParameters
protected void setUnitParameters(org.eclipse.emf.henshin.interpreter.UnitApplication refactoringUnit)
Override this method to provide the needed parameters for the given henshin transformation- Parameters:
refactoringUnit
- The Henshin transformation unit.
-
postProcessing
protected void postProcessing(CMLResource resource)
Override this method in case you want execute some post-processing after the Henshin transformation- Parameters:
resource
- The resource already transformed by Henshin.
-
throwTransformationError
protected void throwTransformationError()
Override this method to provide refactoring-specific error message.
-
-