list of dots Digital Research Alliance of Canada logo  NSERC logo  University of Ottawa logo / UniversitĂ© d'Ottawa

User Manual    [Previous]   [Next]   

E008 Association Class Missing End

Umple semantic error reported when an association class is only defined with one end

An association class must have two classes designated as its ends. Instances of the association class represent links between instances of the associated classes, so it is illogical for an association class to have only one end.

Example

// This example generates the error message
class A {}

class B {}

associationClass C {
   * A;
}
      

Load the above code into UmpleOnline

 

Solution to The Above So the Message No Longer Appears

// The following shows how to avoid the error
class A {}

class B {}

associationClass C {
   * A;
   * B;
}
      

Load the above code into UmpleOnline