Good point that multiplicity would work in most cases, but not for things like parameters. For example: the webservice cartridge generates arrays (instead of collections) for associations between value objects and multiplicities of greater than 1 on attributes. Parameters don't have any multiplicity specification so that won't work in that case.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Muller Sent: Friday, February 25, 2005 11:45 AM To: [email protected] Subject: RE: [Andromda-user] Retrieving Type modifier set with MagicDraw I'm wondering whether the "type modifier" is the right place to look for standard UML array specification. Isn't the StructuralFeature multiplicity property how UML 1.4 expresses multiple values for an object that's part of a class? Right now I think AndroMDA is using it primarily to represent null or not null (0 or 1 multiplicity) but wouldn't 0..*, *, or 1..* represent a multivalued attribute? I think the template could decide whether this is an [] native array or an ArrayList a Collection (ordered List, whatever), but that's how UML does it. For SQL, for example, Oracle could handle this as a VARRAY type. The native array is definitely not part of the UML lexicon, it's too language-specific. > ------------Original Message------------ > From: "Chad Brandon" <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Cc: "'Fouelefak St�phane'" <[EMAIL PROTECTED]>, [email protected] > Date: Fri, Feb-25-2005 5:41 AM > Subject: RE: [Andromda-user] Retrieving Type modifier set with MagicDraw > > > > -----Original Message----- > From: Wouter Zoons [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 24, 2005 8:07 AM > To: Chad Brandon > Cc: [EMAIL PROTECTED]; 'Fouelefak St�phane'; > [email protected] > Subject: RE: [Andromda-user] Retrieving Type modifier set with > MagicDraw > > > > [CB] Well I don't know if its cleaner, however it isn't possible to > > retrieve > > the fact that its an array using the modifier "[]" stored in magic > draw > > because Magic Draw stores that in a proprietary format within the XMI > (so > > it > > can't be retrieved). In regards to whether or not the parameter is > in, > > inout, etc....yes we should probably expose that...can you file a > request > > in > > JIRA under the UMLMETA project and I'll add it? > > I was thinking 'cleaner' because of the centralized way of specifying > classifier types, the modifier is too PSM for me .. if you want to > support > it you'll probably need to include a mapping for it too for it to > remain > PIM > > [CB] Hmm, I'm not really sure about being PSM, I think arrays are a > standard > concept. > > the advantage would be that we wouldn't need to include all array types > for the datatypes, that's nice .. but is this feature supported by most > UML tools ? I see that Poseidon does not allow it, it includes all > array > datatypes. > > anyway, I guess it can never hurt to support it :-) > > [CB] No, there is no standard way to include or retrieve it in the XMI > (at > least UML 1.4). > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real > users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > _______________________________________________ > Andromda-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/andromda-user > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user
