Class Link
The default implementation of the Link class
[AlternativeNamespace("http://schema.omg.org/spec/mof/2.0/emof.xmi")]
[XmlNamespace("http://schema.omg.org/spec/MOF/2.0/cmof.xml")]
[XmlNamespacePrefix("cmof")]
[ModelRepresentationClass("http://schema.omg.org/spec/MOF/2.0/cmof.xml#//Link")]
public class Link : ModelElement, ILink, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
- Inheritance
-
Link
- Implements
- Inherited Members
Properties
Association
The association property
[XmlElementName("association")]
[XmlAttribute(true)]
public IAssociation Association { get; set; }
Property Value
ClassInstance
Gets the Class model for this type
public static IClass ClassInstance { get; }
Property Value
FirstElement
The firstElement property
[XmlElementName("firstElement")]
[XmlAttribute(true)]
public IElement FirstElement { get; set; }
Property Value
ReferencedElements
Gets the referenced model elements of this model element
public override IEnumerableExpression<IModelElement> ReferencedElements { get; }
Property Value
SecondElement
The secondElement property
[XmlElementName("secondElement")]
[XmlAttribute(true)]
public IElement SecondElement { get; set; }
Property Value
Methods
Delete()
public IModelElement Delete()
Returns
Equals(ILink)
public bool Equals(ILink otherLink)
Parameters
otherLink
ILink
Returns
GetClass()
Gets the Class for this model element
public override IClass GetClass()
Returns
GetExpressionForReference(string)
Gets the property expression for the given reference
protected override INotifyExpression<IModelElement> GetExpressionForReference(string reference)
Parameters
reference
stringThe requested reference in upper case
Returns
- INotifyExpression<IModelElement>
An incremental property expression
GetModelElementForReference(string, int)
Resolves the given URI to a child model element
protected override IModelElement GetModelElementForReference(string reference, int index)
Parameters
Returns
- IModelElement
The model element or null if it could not be found
SetFeature(string, object)
Sets a value to the given feature
protected override void SetFeature(string feature, object value)