|isLeaf in UML Class Diagram [message #626713]
||Mon, 16 June 2008 12:48
| Timothy Marc
Registered: July 2009
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
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?
Powered by FUDForum
. Page generated in 0.01728 seconds