uOttawaUniversity of Ottawa - Canadas University
list of dots

Umple User Manual    [Previous]   [Next]   

Loading

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

 

Another Example

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

class B {}

associationClass C {
   * A;
   * B;
}

      

Load the above code into UmpleOnline