Table of Contents

Class HomogenModelSync<T>

Namespace
NMF.AnyText
Assembly
NMF.AnyText.Synchronizations.dll

Represents a synchronization class for homogeneous model elements.

public class HomogenModelSync<T> : ModelSynchronization, IModelSynchronization where T : class, IModelElement

Type Parameters

T

The type of model element being synchronized.

Inheritance
HomogenModelSync<T>
Implements
Inherited Members

Constructors

HomogenModelSync()

Creates a new instance

public HomogenModelSync()

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

leftUri Uri

the URI of the left model

leftRoot IModelElement

the left root model

rightUri Uri

the URI of the right model

rightRoot IModelElement

the 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

leftUri Uri

the URI of the left model

leftRoot IModelElement

the left root model

rightUri Uri

the URI of the right model

rightRoot IModelElement

the right root model

Returns

IRunningSynchronization

A running synchronization or null, if the synchronization is aborted