Table of Contents

Class Link

Namespace
NMF.Interop.Cmof
Assembly
NMF.UMLInterop.dll

The default implementation of the Link class

[XmlNamespace("http://www.omg.org/spec/MOF/20131001/cmof.xmi")]
[XmlNamespacePrefix("cmof")]
[ModelRepresentationClass("http://www.omg.org/spec/MOF/20131001/cmof.xmi#//Link")]
public class Link : Object, ILink, IObject, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
Link
Implements
Inherited Members

Properties

The association property

[XmlElementName("association")]
[XmlAttribute(true)]
public IAssociation Association { get; set; }

Property Value

IAssociation

Gets the Class model for this type

public static IClass ClassInstance { get; }

Property Value

IClass

The firstElement property

[XmlElementName("firstElement")]
[XmlAttribute(true)]
public IElement FirstElement { get; set; }

Property Value

IElement

Gets the referenced model elements of this model element

public override IEnumerableExpression<IModelElement> ReferencedElements { get; }

Property Value

IEnumerableExpression<IModelElement>

The secondElement property

[XmlElementName("secondElement")]
[XmlAttribute(true)]
public IElement SecondElement { get; set; }

Property Value

IElement

Methods

public void Delete()

Gets the Class for this model element

public override IClass GetClass()

Returns

IClass

Gets the property expression for the given reference

protected override INotifyExpression<IModelElement> GetExpressionForReference(string reference)

Parameters

reference string

The requested reference in upper case

Returns

INotifyExpression<IModelElement>

An incremental property expression

Resolves the given URI to a child model element

protected override IModelElement GetModelElementForReference(string reference, int index)

Parameters

reference string

The requested reference name

index int

The index of this reference

Returns

IModelElement

The model element or null if it could not be found

Raises the AssociationChanged event

protected virtual void OnAssociationChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

Raises the AssociationChanging event

protected virtual void OnAssociationChanging(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

Raises the DeleteCalled event

protected virtual void OnDeleteCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

Raises the DeleteCalling event

protected virtual void OnDeleteCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

Raises the FirstElementChanged event

protected virtual void OnFirstElementChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

Raises the FirstElementChanging event

protected virtual void OnFirstElementChanging(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

Raises the SecondElementChanged event

protected virtual void OnSecondElementChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

Raises the SecondElementChanging event

protected virtual void OnSecondElementChanging(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

Sets a value to the given feature

protected override void SetFeature(string feature, object value)

Parameters

feature string

The requested feature

value object

The value that should be set to that feature

Events

Gets fired when the Association property changed its value

public event EventHandler<ValueChangedEventArgs> AssociationChanged

Event Type

EventHandler<ValueChangedEventArgs>

Gets fired before the Association property changes its value

public event EventHandler<ValueChangedEventArgs> AssociationChanging

Event Type

EventHandler<ValueChangedEventArgs>

Gets fired after the operation delete got called

public event EventHandler<OperationCallEventArgs> DeleteCalled

Event Type

EventHandler<OperationCallEventArgs>

Gets fired before the operation delete gets called

public event EventHandler<OperationCallEventArgs> DeleteCalling

Event Type

EventHandler<OperationCallEventArgs>

Gets fired when the FirstElement property changed its value

public event EventHandler<ValueChangedEventArgs> FirstElementChanged

Event Type

EventHandler<ValueChangedEventArgs>

Gets fired before the FirstElement property changes its value

public event EventHandler<ValueChangedEventArgs> FirstElementChanging

Event Type

EventHandler<ValueChangedEventArgs>

Gets fired when the SecondElement property changed its value

public event EventHandler<ValueChangedEventArgs> SecondElementChanged

Event Type

EventHandler<ValueChangedEventArgs>

Gets fired before the SecondElement property changes its value

public event EventHandler<ValueChangedEventArgs> SecondElementChanging

Event Type

EventHandler<ValueChangedEventArgs>