Prev Next

Connectors

The process of creating connectors in a transformation has the same form as for creating elements (objects). It is a little more complex, because you also define each end of the connector - the source and target.

Connectors are represented in the Intermediary language as:

     ConnectorType

     {

          connectorProperties*

          AssociationClass {associationClassProperties*}

          Source {sourceProperties*}

          Target {targetProperties*}

     }

For example:

     Association

     {

          name="anAssociation"

          stereotype=""

          direction="Unspecified"

          Source

          {

               access="Private"

               navigability="Unspecified"

          }

          Target

          {

               access="Private"

               multiplicity="1..*"

          }

     }

Syntax elements in the code

Element

Detail

See also

ConnectorType

ConnectorType is one of these:

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

connectorProperties

connectorProperties is zero, or one instance of one or more of these:

  • alias
  • direction
  • notes
  • name
  • stereotype
  • tag
  • XRef

associationClassProperties

associationClassProperties are one instance of these:

  • Classifier
  • XRef

sourceProperties
targetProperties

sourceProperties and targetProperties are each a reference to an element and zero, or one instance of one or more of these:

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

Element Reference

An element reference is either a guid that references an element that already exists before the transformation, or an XRef to reference an element that is created by a transformation.

  • guid
  • XRef
Cross References

Notes

  • Each connector is transformed at both end objects, therefore the connector might appear twice in the transformation; this is not a problem, although you should check carefully that the connector is generated exactly the same way, regardless of which end is on the current Class

Learn more