Class ModelSynchronization<TLeft, TRight, TSynchronization, TStartRule>
Represents a generic model synchronization class for specific model element types.
public class ModelSynchronization<TLeft, TRight, TSynchronization, TStartRule> : ModelSynchronization, IModelSynchronization where TLeft : class, IModelElement where TRight : class, IModelElement where TSynchronization : ReflectiveSynchronization, new() where TStartRule : SynchronizationRule<TLeft, TRight>
Type Parameters
TLeftThe type of the left model element.
TRightThe type of the right model element.
TSynchronizationThe type of the synchronization engine used.
TStartRuleThe type of the starting synchronization rule.
- Inheritance
-
ModelSynchronization<TLeft, TRight, TSynchronization, TStartRule>
- Implements
- Inherited Members
Constructors
ModelSynchronization()
Creates a new instance
public ModelSynchronization()
Methods
SynchronizeLeftToRight(Uri, ref IModelElement, Uri, ref IModelElement)
Starts the synchronization from the left model to the right model
protected override IRunningSynchronization SynchronizeLeftToRight(Uri leftUri, ref IModelElement leftRoot, Uri rightUri, ref IModelElement rightRoot)
Parameters
leftUriUrithe URI of the left model
leftRootIModelElementthe left root model
rightUriUrithe URI of the right model
rightRootIModelElementthe right root model
Returns
- IRunningSynchronization
A running synchronization or null, if the synchronization is aborted
SynchronizeRightToLeft(Uri, ref IModelElement, Uri, ref IModelElement)
Starts the synchronization from the right model to the left model
protected override IRunningSynchronization SynchronizeRightToLeft(Uri leftUri, ref IModelElement leftRoot, Uri rightUri, ref IModelElement rightRoot)
Parameters
leftUriUrithe URI of the left model
leftRootIModelElementthe left root model
rightUriUrithe URI of the right model
rightRootIModelElementthe right root model
Returns
- IRunningSynchronization
A running synchronization or null, if the synchronization is aborted