Class ChangePartnershipToUpstreamDownstreamRefactoring
- java.lang.Object
-
- org.contextmapper.dsl.refactoring.AbstractRefactoring
-
- org.contextmapper.dsl.refactoring.ChangePartnershipToUpstreamDownstreamRefactoring
-
- All Implemented Interfaces:
SemanticCMLRefactoring
public class ChangePartnershipToUpstreamDownstreamRefactoring extends AbstractRefactoring implements SemanticCMLRefactoring
Removes a Partnership relationship between two Bounded Contexts and creates an Upstream-Downstream relationship instead.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
downstreamContext
protected java.lang.String
upstreamContext
-
Fields inherited from class org.contextmapper.dsl.refactoring.AbstractRefactoring
additionalResourcesToCheck, consistencyCheckResources, importedResources, model, rootResource
-
-
Constructor Summary
Constructors Constructor Description ChangePartnershipToUpstreamDownstreamRefactoring(java.lang.String upstreamContext, java.lang.String downstreamContext)
Pass the two Bounded Context names within the Partnership relationship.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
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
-
-
-
-
Constructor Detail
-
ChangePartnershipToUpstreamDownstreamRefactoring
public ChangePartnershipToUpstreamDownstreamRefactoring(java.lang.String upstreamContext, java.lang.String downstreamContext)
Pass the two Bounded Context names within the Partnership relationship. The first partner (first parameter) will become upstream.
-
-
Method Detail
-
doRefactor
protected void doRefactor()
- Specified by:
doRefactor
in classAbstractRefactoring
-
-