Hi Wouter, Thanks for your Answer. As far as datatypes are concerned, I think that it's better to do What you suggest. However, when the types used are those defined in the UML model, I feel Somehow lost, since it means that for each class ( for example model.User), I should define A model.User[] type ... I wanted to avoid that, since at the UML level, there would be no Relation between model.User and model.User[], but it's true that I see no other Possibility. Hmmmm, I'm still searching, and I keep your idea in mind. Thanks.
Stephane -----Message d'origine----- De : Wouter Zoons [mailto:[EMAIL PROTECTED] Envoy� : jeudi 24 f�vrier 2005 15:33 � : Fouelefak St�phane Cc : '[email protected]' Objet : Re: [Andromda-user] Retrieving Type modifier set with MagicDraw don't use that [] modifier .. use the datatype.String[],.. return types (there is one for each datatype, such as int[], Long[],..) this is cleaner because you can still control the generated types using the mapping files -- Wouter > Hi, > Using MagicDraw 9 as modelling tool and Andromda 3 as generation tool > for my own cartridges, > I faced something that looks like a problem : > My Uml model contains a class User and a method getAllUsers() which should > return many Users. > I modelled it the follwing way : A method whith the name "getAllUsers", > with > a return type which is User, and > in magic draw, I set the type modifier to "[]" for the return type. So in > a > class Diagramm the signature that appears > is : User[] getAllUsers(), which is what I want. > However, when I receive that operation within a velocity context, the > return > type FQN is "User", and for that operation > returntype.isArrayType() return false, exactly as if the signature was > "User > getAllUsers()". > It therefore seems that the type modifiers set within Magic Draw are not > seen by AndromDA. I also not succeeded in > retrieving the fact that a parameter was in, out or in/out. > ParameterFacadeLogic does not offer that information > Has any one succeeded to retrieve both the type modifiers and the in, out > or > in/out attribute of a parameter ? > > Thanks for you help > Stephane > ------------------------------------------------------- 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
