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

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