Importing one-to-many relationships in Python

14 views
Skip to first unread message

Samuel Lampa

unread,
Mar 4, 2011, 4:04:34 PM3/4/11
to gaphor-dev
Just found out about Gaphor. Looks promising indeed! The best tool I
tried so far for importing python code to UML( including Sparx
Enterprise Architect, in which I didn't succed to import
relationships).

In Gaphor, I though still can't seem to import one-to-many
relationships, which I typically represent with a list of object
references. Is this possible, and if so, how to write the code to make
Gaphor recognize them?

Cheers
// Samuel

Arjan Molenaar

unread,
Mar 6, 2011, 7:46:49 AM3/6/11
to gapho...@googlegroups.com
Hi Samuel,

I'm not sure if PyNSource (which is the application that does all the reverse-engineering heavy lifting) is capable of doing that. The reverse engineering is done based on static code analysis and Python does not provide any info on the kind of objects that are held in a list.

We're actually looking for something to replace the PyNSource code. If you have any suggestions, please share them.

Now we're on the subject anyway: does anyone have a suggestion for analyzing Java code?

Regards,

Arjan

Reply all
Reply to author
Forward
0 new messages