Class Link
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
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 void Delete()
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
referencestringThe 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
OnAssociationChanged(ValueChangedEventArgs)
Raises the AssociationChanged event
protected virtual void OnAssociationChanged(ValueChangedEventArgs eventArgs)
Parameters
eventArgsValueChangedEventArgsThe event data
OnAssociationChanging(ValueChangedEventArgs)
Raises the AssociationChanging event
protected virtual void OnAssociationChanging(ValueChangedEventArgs eventArgs)
Parameters
eventArgsValueChangedEventArgsThe event data
OnDeleteCalled(OperationCallEventArgs)
Raises the DeleteCalled event
protected virtual void OnDeleteCalled(OperationCallEventArgs eventArgs)
Parameters
eventArgsOperationCallEventArgsThe event data
OnDeleteCalling(OperationCallEventArgs)
Raises the DeleteCalling event
protected virtual void OnDeleteCalling(OperationCallEventArgs eventArgs)
Parameters
eventArgsOperationCallEventArgsThe event data
OnFirstElementChanged(ValueChangedEventArgs)
Raises the FirstElementChanged event
protected virtual void OnFirstElementChanged(ValueChangedEventArgs eventArgs)
Parameters
eventArgsValueChangedEventArgsThe event data
OnFirstElementChanging(ValueChangedEventArgs)
Raises the FirstElementChanging event
protected virtual void OnFirstElementChanging(ValueChangedEventArgs eventArgs)
Parameters
eventArgsValueChangedEventArgsThe event data
OnSecondElementChanged(ValueChangedEventArgs)
Raises the SecondElementChanged event
protected virtual void OnSecondElementChanged(ValueChangedEventArgs eventArgs)
Parameters
eventArgsValueChangedEventArgsThe event data
OnSecondElementChanging(ValueChangedEventArgs)
Raises the SecondElementChanging event
protected virtual void OnSecondElementChanging(ValueChangedEventArgs eventArgs)
Parameters
eventArgsValueChangedEventArgsThe event data
SetFeature(string, object)
Sets a value to the given feature
protected override void SetFeature(string feature, object value)
Parameters
Events
AssociationChanged
Gets fired when the Association property changed its value
public event EventHandler<ValueChangedEventArgs> AssociationChanged
Event Type
AssociationChanging
Gets fired before the Association property changes its value
public event EventHandler<ValueChangedEventArgs> AssociationChanging
Event Type
DeleteCalled
Gets fired after the operation delete got called
public event EventHandler<OperationCallEventArgs> DeleteCalled
Event Type
DeleteCalling
Gets fired before the operation delete gets called
public event EventHandler<OperationCallEventArgs> DeleteCalling
Event Type
FirstElementChanged
Gets fired when the FirstElement property changed its value
public event EventHandler<ValueChangedEventArgs> FirstElementChanged
Event Type
FirstElementChanging
Gets fired before the FirstElement property changes its value
public event EventHandler<ValueChangedEventArgs> FirstElementChanging
Event Type
SecondElementChanged
Gets fired when the SecondElement property changed its value
public event EventHandler<ValueChangedEventArgs> SecondElementChanged
Event Type
SecondElementChanging
Gets fired before the SecondElement property changes its value
public event EventHandler<ValueChangedEventArgs> SecondElementChanging