Menu

Can not read XMI files with "*" multiplicity

2002-06-29
2002-06-29
  • Maxim Drobintsev

    I am trying to use NSUML 1_4-0_1_3 to read XMI file generated by the Magic Draw UML 5.5 (http://www.magicdraw.com/).

    The problem is that Magic Draw uses asterisk instead of "-1" for UML:MultiplicityRange.upper. NSUML fails with NumberFormatException when it encounters "*".

    The question is: is it NSUML problem or Magic Draw problem and who should fix it.

    Thanks a lot -- Maxim.

     
    • Brian Smith

      Brian Smith - 2002-06-29

      MagicDraw is the one with the bug. The XMI standard doesn't provide any use for the symbol "*". Also, in the UML metamodel, you can see that MultiplicityRange.upper has a type that is basically a "typdef" for the Cobra Integer type (I think it is called UnlimitedInteger). Also, there should be some constant named something like "Unbounded" that it set to be -1.

      - Brian

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.