Menu

#29 Multiplicity of method parameters

open
None
5
2012-04-25
2012-03-26
No

Hi,

I'm using Enterprise Architect Ver. 9.2 and i have a very strange problem with the UML2Exporter.
If i place the multiplicity at a method parameter, the exporter don't put int into the uml file.
I placed some screenshots of my settings in EA

Discussion

  • Eduard Eigner

    Eduard Eigner - 2012-03-26

    Setting of the method parameter

     
  • Eduard Eigner

    Eduard Eigner - 2012-03-26
    • priority: 5 --> 9
     
  • Eduard Eigner

    Eduard Eigner - 2012-03-26

    The written UML file by the exporter is missing the upperBound and lowerBound tags :
    <ownedOperation xmi:id="{F2EB6B9C-2F05-4a3b-A522-3CC2CC895056}" name="TestServiceProtokoll" visibility="public">
    <ownedParameter xmi:id="_hyofS3UAEeGI1OWPk4BGhw" type="42adcbaa-3817-4301-9e9d-0c2f97f99140" direction="return"/>
    <ownedParameter xmi:id="{3D906A98-75B0-4e98-9022-30CD868E47F4}" name="meldungsliste" type="{04939983-8797-42a6-A693-6761334F4067}">
    <defaultValue xmi:type="uml:LiteralString" xmi:id="_hy7aQHUAEeGI1OWPk4BGhw" value=""/>
    </ownedParameter>
    <ownedParameter xmi:id="{8B561841-5505-4ca8-B5D9-93FF8076E4B3}" name="passeditems" type="{5287D37A-ACAA-435f-B137-7011213163C0}">
    <defaultValue xmi:type="uml:LiteralString" xmi:id="_hy7aQnUAEeGI1OWPk4BGhw" value=""/>
    </ownedParameter>
    </ownedOperation>

    if should look like that :
    <ownedOperation xmi:id="{F2EB6B9C-2F05-4a3b-A522-3CC2CC895056}" name="TestServiceProtokoll" visibility="public">
    <ownedParameter xmi:id="_hyofS3UAEeGI1OWPk4BGhw" type="42adcbaa-3817-4301-9e9d-0c2f97f99140" direction="return"/>
    <ownedParameter xmi:id="{3D906A98-75B0-4e98-9022-30CD868E47F4}" name="meldungsliste" type="{04939983-8797-42a6-A693-6761334F4067}">
    <defaultValue xmi:type="uml:LiteralString" xmi:id="_hy7aQHUAEeGI1OWPk4BGhw" value=""/>
    <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_hy7aNnUAEeGI1OWPk4BGhw" value="*"/>
    <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_hy7aNXUAEeGI1OWPk4BGhw"/>
    </ownedParameter>
    <ownedParameter xmi:id="{8B561841-5505-4ca8-B5D9-93FF8076E4B3}" name="passeditems" type="{5287D37A-ACAA-435f-B137-7011213163C0}">
    <defaultValue xmi:type="uml:LiteralString" xmi:id="_hy7aQnUAEeGI1OWPk4BGhw" value=""/>
    <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_hy7aNnUAEeGI1OWPk4BGhw" value="*"/>
    <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_hy7aNXUAEeGI1OWPk4BGhw"/>
    </ownedParameter>
    </ownedOperation>

    because of this, my javas classes was generated in a wrong way (with exact types, instead of a list, containing these types)

    Plesae help, this is urgent !

    br,
    Edi

     
  • Ueli Brawand

    Ueli Brawand - 2012-04-25

    Hi
    This is not a bug. This is a new feature.
    In earlier releases of EA these options where not available.

    Currently a solution is not available, due to these values are not exportet by COM interface of EA.
    So we have to wait for a solution of sparx systems.

     
  • Ueli Brawand

    Ueli Brawand - 2012-04-25
    • labels: 1016498 -->
    • milestone: 1882823 -->
     
  • Ueli Brawand

    Ueli Brawand - 2012-04-25
    • priority: 9 --> 5
     
  • Eduard Eigner

    Eduard Eigner - 2012-04-27

    ok, did you have an idea for a workaround to this problem ?

    br,
    Edi

     
  • Ueli Brawand

    Ueli Brawand - 2012-05-19

    Currently I have no work arround.
    I didn't find a way to get the information about multiplicity of parameters.
    If you can give me some hint, it would be very helpful.

     
  • Ueli Brawand

    Ueli Brawand - 2012-05-19

    Currently I have no work arround.
    I didn't find a way to get the information about multiplicity of parameters.
    If you can give me some hint, it would be very helpful.

     

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.