Class CompositeReconstructorBase
- java.lang.Object
-
- org.eclipse.emf.edapt.history.reconstruction.CompositeReconstructorBase
-
- All Implemented Interfaces:
IReconstructor
- Direct Known Subclasses:
BackwardReconstructorBase
,ForwardReconstructorBase
public abstract class CompositeReconstructorBase extends Object implements IReconstructor
A reconstructor that follows the metamodel history and which call other reconstructors that can be plugged in- Version:
- $Rev$
- Author:
- herrmama, $Author$
-
-
Constructor Summary
Constructors Constructor Description CompositeReconstructorBase()
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addReconstructor(IReconstructor reconstructor)
Add a reconstructorvoid
endChange(Change change)
Reconstruction of a change is finishedvoid
endHistory(History originalHistory)
Reconstruction of the history is finishedvoid
endRelease(Release originalRelease)
Reconstruction of a release is finishedMetamodelExtent
getExtent()
Getter for extentMapping
getMapping()
Getter for mappingorg.eclipse.emf.ecore.resource.ResourceSet
getResourceSet()
Getter for resource setvoid
init(Mapping mapping, MetamodelExtent extent)
Initialization will be called at the very beginning of reconstructionvoid
reconstruct(Change targetChange, boolean before)
Reconstruct until a certain changevoid
reconstruct(Release targetRelease, boolean before)
Reconstruct until a certain versionvoid
startChange(Change change)
Reconstruction of a change startsvoid
startHistory(History originalHistory)
Reconstruction of the history startsvoid
startRelease(Release originalRelease)
Reconstruction of a release starts
-
-
-
Method Detail
-
reconstruct
public void reconstruct(Release targetRelease, boolean before)
Reconstruct until a certain version- Parameters:
targetRelease
- Target versionbefore
- Whether reconstruction stops before or after version
-
reconstruct
public void reconstruct(Change targetChange, boolean before)
Reconstruct until a certain change- Parameters:
targetChange
- Target changebefore
- Whether reconstruction stops before or after change
-
init
public void init(Mapping mapping, MetamodelExtent extent)
Initialization will be called at the very beginning of reconstruction- Specified by:
init
in interfaceIReconstructor
- Parameters:
mapping
- Mapping from old to new elementsextent
- Extent
-
addReconstructor
public void addReconstructor(IReconstructor reconstructor)
Add a reconstructor
-
startHistory
public void startHistory(History originalHistory)
Reconstruction of the history starts- Specified by:
startHistory
in interfaceIReconstructor
- Parameters:
originalHistory
- Original history
-
endHistory
public void endHistory(History originalHistory)
Reconstruction of the history is finished- Specified by:
endHistory
in interfaceIReconstructor
- Parameters:
originalHistory
- Original history
-
startChange
public void startChange(Change change)
Reconstruction of a change starts- Specified by:
startChange
in interfaceIReconstructor
- Parameters:
change
- Original change
-
endChange
public void endChange(Change change)
Reconstruction of a change is finished- Specified by:
endChange
in interfaceIReconstructor
- Parameters:
change
- Original release
-
startRelease
public void startRelease(Release originalRelease)
Reconstruction of a release starts- Specified by:
startRelease
in interfaceIReconstructor
- Parameters:
originalRelease
- Original release
-
endRelease
public void endRelease(Release originalRelease)
Reconstruction of a release is finished- Specified by:
endRelease
in interfaceIReconstructor
-
getExtent
public MetamodelExtent getExtent()
Getter for extent
-
getMapping
public Mapping getMapping()
Getter for mapping
-
getResourceSet
public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
Getter for resource set
-
-