Class ConnectorEnd
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
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
ReferencedElements
Gets the referenced model elements of this model element
public override IEnumerableExpression<IModelElement> ReferencedElements { get; }
Property Value
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
Methods
GetClass()
Gets the Class for this model element
public override IClass GetClass()
Returns
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
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
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
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.
Returns
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
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.
Returns
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
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.
Returns
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
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.
Returns
SetFeature(string, object)
Sets a value to the given feature
protected override void SetFeature(string feature, object value)