Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » isLeaf in UML Class Diagram
isLeaf in UML Class Diagram [message #626713] Mon, 16 June 2008 12:48
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hi all,

i was doing some uml class diagramm stuff, just for research on my own. In
the UML superstructure i've found the definition of the attribute isLeaf
from RedefinableElement.
Indicates whether it is possible to further specialize a RedefinableElement.
If the value is true, then it is not possible to further specialize the
RedefinableElement. Default value is false.

IMHO, that sounds like if you defines an Operation (for example) as a leaf,
it is not allowed to redefine the operation in a subclassing class. Some
kind of "final" in the Java-world. Let me know, if i'm wrong.

I defined a Class A with an Operation foo, with isLeaf = true. Afterwards, i
defined a Class B with operation foo, that redefines the Operation A::foo().
I've exepected the validation to fail, but it succeeded. Did i
missunderstand the meaning of the isLeaf attribute?

Thanks
-- Timothy
Previous Topic:Re: Generate XMI instead of UML
Next Topic:Substitution issue
Goto Forum:
  


Current Time: Fri Apr 26 14:09:57 GMT 2024

Powered by FUDForum. Page generated in 0.03005 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top