I actually resolved it.

The solution is simple, in the paramether-s properties you need to set
isOrdered=true and isUnique=false. In this case the code generation will
generate ArrayList.

Using the interface List would be optimal, so now I will search were to
submit a request...

Cheers,
Orlin

> Hi,
> I am experiencing the following problem:
> I want to generate a method, which takes a List, so since List is too java
> specific, I need to specify in the UML of the operation a paramether where
> it's minimum occurrence (Lower) is 1 and maximum (Upper) is *
> Then I generate the code and I get in the method definition not list but
> HashSet<paramether>, is there a way to get the generator to compose me a
> list instead of HashSet?
>
> Even if I am to change the definition of the method to List<paramether>,
> the next time I recreate the UML this change will get removed, so this is
> not an option.
>
> Cheers,
> Orlin
>
>
> _______________________________________________
> Topcased-users mailing list
> [email protected]
> http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users
>



_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users
  • [Topcased-users] UML2Java Topcased user list where issues are discussed
    • Re: [Topcased-users] UM... Topcased user list where issues are discussed

Reply via email to