[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 56184] Umbrello XMI file format doesn't conform with uml13.dtd
From:       Marcus Alanen <maalanen () abo ! fi>
Date:       2005-06-27 10:32:25
Message-ID: 20050627103225.26147.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
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.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic