Author Topic: coding an Association class in XMI  (Read 3939 times)

mcoletti

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
coding an Association class in XMI
« on: August 21, 2006, 08:16:26 am »
Hi,

I am building a tool that writes an XMI file to be imported in EA.

I was using XMI 1.2 until now, but I don't understand how to code an AssociationClass. As for other classifiers, I have created a sample model in EA, exported it in XMI, and used the file as a reference, but I am not able to understand the logic for AssociationClass (and EA doesn't import correctly it's own generated XMI file with this kind of classifiers)

I was also looking at XMI 2.x, but I wasn't able to find the specifications for this new version.

Any hint, please?

Massimo Coletti

thomaskilian

  • Guest
Re: coding an Association class in XMI
« Reply #1 on: August 22, 2006, 09:49:29 am »
Hm, maybe a dumb sugesstion but why don't you export an association class from EA and see how the result looks?

mcoletti

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: coding an Association class in XMI
« Reply #2 on: August 22, 2006, 09:54:33 am »
Thomas, I tried, but the output was buggy: in fact, EA writes the AssociationClass, but the connection is outside this element.
If you try to import back in EA the generated XMI, the association class is lost.

I have used Poseidon as a benchmark, generated the association class using it's output as an example, and the import in EA worked fine.

Sill, if someone has a pointer to XMI 2.0 specifications...  ;)

thomaskilian

  • Guest
Re: coding an Association class in XMI
« Reply #3 on: August 22, 2006, 10:11:35 am »
Well, if EA can't output correctly I'd strongly expect it to do the same garbage on import :-/

mcoletti

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: coding an Association class in XMI
« Reply #4 on: August 22, 2006, 10:36:18 am »
Me, too, but import works fine, while export doesn't.

Thanks,

Massimo

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8064
  • Karma: +118/-20
    • View Profile
Re: coding an Association class in XMI
« Reply #5 on: August 22, 2006, 03:19:56 pm »
The XMI (2.1) specification is available at http://www.omg.org/technology/documents/formal/xmi.htm

XMI 1.2 is a format that was added to EA only for compatibility with other tools and where possible it is recommended to use XMI 1.1 (UML 1.3) or XMI 2.1 (UML 2.0 or 2.1) for import into EA.  The latter applies only to EA 6.5.