uOttawaUniversity of Ottawa - Canadas University
list of dots

Umple User Manual    [Previous]   [Next]   

Loading

W106 Enumeration in Uni-directional Association

Umple semantic warning reported when an enumeration is used in a uni-directional association.

Example

// This example generates the warning

class X {
  enum Y{ Red, Blue, Green }
  0..1 -> * Y;
}

class Y { }

      

Load the above code into UmpleOnline

 

Another Example

// This example generates the warning

class X {
  enum Y{ Red, Blue, Green }
  0..1 <- * Y;
}

class Y { }

      

Load the above code into UmpleOnline

 

Another Example

// This example does not generate the warning

class X {
  enum Y { Red, Blue, Green }
  0..1 -> * Z;
}

class Z { }

      

Load the above code into UmpleOnline