Forum Index - Topic Index How to use of Astah (Pro/SysML/GSN/Com) Exporting Java Class Diagram with List <?> |
Threaded | Newest First | Previous Topic | Next Topic | Bottom |
Poster | Thread |
---|---|
cristianch | Posted on: 2012/7/20 22:07 |
Just popping in Joined: 2012/7/20 From: Posts: 1 |
Exporting Java Class Diagram with List <?> Hi,
I am using Astah Professional 6.6.3 (Model version 36) and i have a class that has a non-navigable association to a navigable association, with multiplicity 1 +--> 0...*, and a would like that when i export the java classes it was exported like a List, of some type(List<?>), and not like a Array... Is it possible? |
Joba | Posted on: 2012/7/24 4:28 |
Developer Joined: 2006/6/6 From: Posts: 969 |
Re: Exporting Java Class Diagram with List <?> Hi there, thanks for using Astah. With the following two steps, you should be able to export as you wish.
1. Choose the option in [Java Export] dialog Please tick the [Export Association End with multiple multiplicities as Collection rather than Array] option in the dialog that appears after you select [Tool] - [Java] - [Export Java]. (Figure below) Reference: Astah Professional Reference Manual - 34. Exporting Java (P.359) 2. Add {ordered} constraint to the Association End Add {ordered} constraint to the Association End. Checking the option above will use Collection Class instead of Array, however it will not use List unless {ordered} is added. Hope this helps. We are sorry that this isn't very intuitive. Improving this to make it easier is already on our list. Let us know if you have any furtner questions! Cheers, SJ |
Threaded | Newest First | Previous Topic | Next Topic | Top |