[Uml-devel] [Bug 56184] Umbrello XMI file format doesn't conform with uml13.dtd

Marcus Alanen maalanen at abo.fi
Mon Jun 27 03:33:07 UTC 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=56184         




------- Additional Comments From maalanen abo fi  2005-06-27 12:32 -------
> Some observatiosn regarding compliance of the classes:
> 
> 1) Attribute doesn't inherit from GeneralizableElement and so it shoudln't 
> have isRoot, isLeaf or isAbstract

Verified. They should indeed be removed.

> 2) isRoot always appears to be set to false. Is shoudl be true for root 
> classes and Operations.

No. UML 1.3 section 2.5.3.18 (part 1) states "A root cannot have any Generalizations: self.isRoot implies self.generalization->isEmpty". I take this to mean that if you set isRoot of a Class to true, then you cannot add superclasses to that class anymore (Similarly for isLeaf: you can't add subclasses).

The importance of using isRoot in the first place is quite questionable. Sometimes people would like to make their classes non-subclassable (i.e. isLeaf support), but even that is mostly bad design. But I _think_ Java's "final class..." supports this.

I wouldn't bother with isLeaf or isRoot, but I'm all talk, no code.




More information about the umbrello-devel mailing list