Connectors

Creating connectors in a transformation can be complex, but the process has the same form as creating elements. The difference is that you must also specify each end.

Topics

Topic

Detail

See also

Intermediary Language

Connectors are represented in the Intermediary language as:

 

ConnectorType

{

  connectorProperties*

  Source {sourceProperties*}

  Target {targetProperties*}

}

 

For example:

Association

{

 name="anAssociation"

 stereotype=""

 direction="Unspecified"

 Source

 {

   access="Private"

   navigability="Unspecified"

 }

 Target

 {

   access="Private"

   multiplicity="1..*"

 }

}

 

 

 

Connector Types

The different connectors that can be created are:
 

Aggregation
Assembly
Association
Collaboration
ControlFlow
Connector
Delegate
Dependency
Deployment
ForeignKey
Generalization
InformationFlow
Instantiation
Interface
InterruptFlow
Manifest
Nesting
NoteLink
ObjectFlow
Package
Realization
Sequence
Transition
UseCase
Uses

 

 

Connector Properties

connectorProperties is zero, or one instance of one or more of the following properties:

 

alias
direction
notes
name
stereotype
XRef
 

 

Source and Target Properties

sourceProperties and targetProperties  are zero, or one instance of one or more of the following properties:

 

aggregation
alias
allowduplicates
changeable
constraint
containment
navigability
membertype
multiplicity
Notes
ordered
qualifier
role
scope
stereotype
XRef

 

 

Notes

Each connector is transformed at both end objects, therefore the connector might appear twice in the transformation; this is nothing to be concerned about, but you should check carefully that the connector is generated exactly the same way, regardless of which end is on the current Class

Learn more