Class SplitBoundedContextByFeatures
- java.lang.Object
-
- org.contextmapper.dsl.refactoring.SplitBoundedContextByFeatures
-
- All Implemented Interfaces:
SemanticCMLRefactoring
public class SplitBoundedContextByFeatures extends java.lang.Object implements SemanticCMLRefactoring
-
-
Constructor Summary
Constructors Constructor Description SplitBoundedContextByFeatures(java.lang.String boundedContextName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
persistChanges()
Can be called after the 'refactor' method, in case one wants to save/persist the changes to the CML files.void
refactor(CMLResourceContainer resource)
Applies the refactoring to the CML model in the given resource.void
refactor(CMLResourceContainer resource, org.eclipse.emf.ecore.resource.ResourceSet consistencyCheckResources)
Applies the refactoring to the CML model in the given resource.
-
-
-
Method Detail
-
refactor
public void refactor(CMLResourceContainer resource)
Description copied from interface:SemanticCMLRefactoring
Applies the refactoring to the CML model in the given resource.- Specified by:
refactor
in interfaceSemanticCMLRefactoring
- Parameters:
resource
- the resource with the CML model that shall be refactored
-
refactor
public void refactor(CMLResourceContainer resource, org.eclipse.emf.ecore.resource.ResourceSet consistencyCheckResources)
Description copied from interface:SemanticCMLRefactoring
Applies the refactoring to the CML model in the given resource. Additionally ensures consistency in Context Maps in all resources of the additional ResourceSet.- Specified by:
refactor
in interfaceSemanticCMLRefactoring
- Parameters:
resource
- the resource with the CML model that shall be refactored.consistencyCheckResources
- the resources that contain Context Maps which potentially have to be corrected after refactoring. For example: if you have other models in your workspace that have referenes to the refactored one. If you provide them here as s ResourceSet, the refactoring can correct the references.
-
persistChanges
public void persistChanges()
Description copied from interface:SemanticCMLRefactoring
Can be called after the 'refactor' method, in case one wants to save/persist the changes to the CML files.- Specified by:
persistChanges
in interfaceSemanticCMLRefactoring
-
-