Optimal way of getting superclass hierarchy of a given uml Class [message #474730] |
Fri, 27 July 2007 05:33  |
Eclipse User |
|
|
|
Hi,
Given a UML Class hierarchy:
GrandParentFoo > ParentFoo > ChildFoo
If I have ChildFoo, what is the most optimal way of getting the list of
super classes [ParentFoo, GrandParentFoo] (in no particular order)? Note:
I don't declare multiple super classes in the same level. What I do now is
I call getSuperClasses() and get the first one recursively.
Thanks,
Francis
|
|
|
|
|
Re: Optimal way of getting superclass hierarchy of a given uml Class [message #624113 is a reply to message #474730] |
Fri, 27 July 2007 14:00  |
Eclipse User |
|
|
|
Francis,
Classifier#allParents() will give you all of the general classifiers, which,
for a class, should all be classes...
Kenn
"Francis" <fgavino@gmail.com> wrote in message
news:488788c62c5e78cb3e3b2a299acfffd9$1@www.eclipse.org...
> Hi,
>
> Given a UML Class hierarchy:
> GrandParentFoo > ParentFoo > ChildFoo
> If I have ChildFoo, what is the most optimal way of getting the list of
> super classes [ParentFoo, GrandParentFoo] (in no particular order)? Note:
> I don't declare multiple super classes in the same level. What I do now is
> I call getSuperClasses() and get the first one recursively.
>
> Thanks,
> Francis
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.09456 seconds