|
|
|
|
|
|
|
|
Re: How to specialize the aggregation for code-generation [message #522946 is a reply to message #522897] |
Wed, 24 March 2010 11:10  |
Eclipse User |
|
|
|
Hi Konstantin
I'm not sure what tool you are using to go from Java to UML but it sounds
like it's missing the generics part.
The simplest way to start is with an Ecore model. Define all your generics
in Ecore; make sure you can generate the kind of Java code you want. You
can then convert from Ecore to UML if you want to get the UML representation
(by using the Ecore to UML converter provided by the UML2 project ).
I totally agree that UML is very tricky and verbose.
Ecore is more compact and more intuitive if you are using it to generate
code.
Cheers,
- James.
"Konstantin" <tkachenkok@gmx.de> wrote in message
news:hod0hi$iq$1@build.eclipse.org...
> Hi James,
>
> Thanks for advice.
> I've looked at this article before writing the post. I haven't got all of
> the things there. :blush:
> I'm not sure, why is the concept of generics so complex in UML. I'm new to
> profiling. ECore is an UML profile. But what is advantage of using it?
> Should I use it? How can I use it? ...
> So I've decided to learn by doing.
> But the attempt was not successfull.
>
> I've made simple Java project with two classes:
>
> public class SudokuField { private List<LineConstraints> lineConstraints;
> SudokuField() { ... }
> public static void main(String[] args) { ... }
> }
>
> public class LineConstraints {
> public static void main(String[] args) { ... }
> public void SayHallo() { ...}
> }
>
> And then I've converted it to the uml model (Using UML from Java). But the
> result of it disappointed me:
>
> <Class> SudokuField
> <Property> lineConstraints : List
>
>
> The information about the generics was not there... :(
>
> So I have something to learn about, before I'm ready to use such a
> tools...
>
> I think, I'll start with the exploring the ECore...
|
|
|
|
Powered by
FUDForum. Page generated in 0.06037 seconds