Table of Contents

Class ConnectorEnd

Namespace
NMF.Interop.Uml
Assembly
NMF.UMLInterop.dll

A ConnectorEnd is an endpoint of a Connector, which attaches the Connector to a ConnectableElement. <p>From package UML::StructuredClassifiers.</p>

[XmlNamespace("http://www.eclipse.org/uml2/5.0.0/UML")]
[XmlNamespacePrefix("uml")]
[ModelRepresentationClass("http://www.eclipse.org/uml2/5.0.0/UML#//ConnectorEnd")]
public class ConnectorEnd : MultiplicityElement, IConnectorEnd, IMultiplicityElement, IElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
ConnectorEnd
Implements
Inherited Members

Properties

ClassInstance

Gets the Class model for this type

public static IClass ClassInstance { get; }

Property Value

IClass

PartWithPort

Indicates the role of the internal structure of a Classifier with the Port to which the ConnectorEnd is attached. <p>From package UML::StructuredClassifiers.</p>

[XmlElementName("partWithPort")]
[XmlAttribute(true)]
public IProperty PartWithPort { get; set; }

Property Value

IProperty

ReferencedElements

Gets the referenced model elements of this model element

public override IEnumerableExpression<IModelElement> ReferencedElements { get; }

Property Value

IEnumerableExpression<IModelElement>

Role

The ConnectableElement attached at this ConnectorEnd. When an instance of the containing Classifier is created, a link may (depending on the multiplicities) be created to an instance of the Classifier that types this ConnectableElement. <p>From package UML::StructuredClassifiers.</p>

[XmlElementName("role")]
[XmlAttribute(true)]
public IConnectableElement Role { get; set; }

Property Value

IConnectableElement

Methods

GetClass()

Gets the Class for this model element

public override IClass GetClass()

Returns

IClass

GetDefiningEnd()

Derivation for ConnectorEnd::/definingEnd : Property result = (if connector.type = null then null else let index : Integer = connector.end->indexOf(self) in connector.type.memberEnd->at(index) endif) <p>From package UML::StructuredClassifiers.</p>

public IProperty GetDefiningEnd()

Returns

IProperty

GetExpressionForReference(string)

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

GetModelElementForReference(string, int)

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

Multiplicity(object, object)

The multiplicity of the ConnectorEnd may not be more general than the multiplicity of the corresponding end of the Association typing the owning Connector, if any. self.compatibleWith(definingEnd)

public bool Multiplicity(object diagnostics, object context)

Parameters

diagnostics object

The chain of diagnostics to which problems are to be appended.

context object

The cache of context-specific information.

Returns

bool

Part_with_port_empty(object, object)

If a ConnectorEnd is attached to a Port of the containing Classifier, partWithPort will be empty. (role.oclIsKindOf(Port) and role.owner = connector.owner) implies partWithPort->isEmpty()

public bool Part_with_port_empty(object diagnostics, object context)

Parameters

diagnostics object

The chain of diagnostics to which problems are to be appended.

context object

The cache of context-specific information.

Returns

bool

Role_and_part_with_port(object, object)

If a ConnectorEnd references a partWithPort, then the role must be a Port that is defined or inherited by the type of the partWithPort. partWithPort->notEmpty() implies (role.oclIsKindOf(Port) and partWithPort.type.oclAsType(Namespace).member->includes(role))

public bool Role_and_part_with_port(object diagnostics, object context)

Parameters

diagnostics object

The chain of diagnostics to which problems are to be appended.

context object

The cache of context-specific information.

Returns

bool

Self_part_with_port(object, object)

The Property held in self.partWithPort must not be a Port. partWithPort->notEmpty() implies not partWithPort.oclIsKindOf(Port)

public bool Self_part_with_port(object diagnostics, object context)

Parameters

diagnostics object

The chain of diagnostics to which problems are to be appended.

context object

The cache of context-specific information.

Returns

bool

SetFeature(string, object)

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