I investigated this awhile back. The UML XMI and the internal MDR system for 
representing objects (JMI) apparently has no way to represent association classes. If 
you look in the XMI file for MagicDraw you'll see they represent the link as a 
proprietary extension to the XMI. So there is no way for Andromda to represent these 
objects. Too bad, considering it's the standard way to represent many-to-many and 
n-ary associations. But this is a UML issue, not an Andromda one.

I worked around this in my own templates by adding one-to-many associations between 
the relevant classes and by standardizing the name of the many-to-many assocation to 
be the name of the association class; the latter lets me get the class name associated 
with the association, which ordinarily I would get by traversing the association class 
link. The solution is too complicated, but it works.

I posted a message earlier on this; I'd be happy to hear if anyone has found another 
solution to this problem.

  --Bob Muller, Stanford University

> ------------Original Message------------
> From: Tomasz Lempart <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Date: Thu, Sep-2-2004 0:46 AM
> Subject: [Andromda-user] Association class in UML
> 
> Hi,
> 
>     is there some possibility to check in velocity script if association 
> has association class (in magicdraw it is called link attribute)?
> 
>     regards
> 
>     Tomek
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> _______________________________________________
> Andromda-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/andromda-user
> 


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id808&op=click
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to