uOttawaUniversity of Ottawa - Canadas University
list of dots

Umple User Manual    [Previous]   [Next]   

Loading

E203 Not having an unique identifier

Umple semantic error related to not using traits which do not have unique identifiers

In Umple, all elements which are capable of being reused should have unique identifiers. Traits, as reusable elements in Umple also have to follow the same rule. Identifiers of traits should be unique in the system. The conflict happens among classes, interfaces, and traits. Therefore, These three elements always should have unique identifiers.

Example

//In  this example, Identifier of trait "I" is not unique;. 
class A{
	isA I;
}

class I {
  //elements
}

trait I{
  //elements
}

      

Load the above code into UmpleOnline

 

Another Example

//In  this example, Identifier of trait "T" is unique
class A{
	isA T;
}

class I {
  //elements
}

trait T{
  //elements
}

      

Load the above code into UmpleOnline