Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Primitive Types - UML to EMF Generation
Primitive Types - UML to EMF Generation [message #477104] Tue, 18 March 2008 18:35 Go to next message
No real name is currently offline No real name
Messages: 5
Registered: July 2009
Junior Member
I need to add custom Primitive Types and map those to concrete Java classes
when I generate an ecore. How do I go about doing so? Everything I've tried
so far hasn't worked.

With Rose I would stereotype my primitive type as a <<datatype>> and add the
java class as an attribute. I've tried doing the same here, but that didn't
work. Only the predefined primitive types generate correctly for me.

Thanks,
Suzette Samoojh
Re: Primitive Types - UML to EMF Generation [message #477106 is a reply to message #477104] Wed, 19 March 2008 05:00 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25740
Registered: July 2009
Senior Member
Suzette,

There's an Ecore profile you can apply and then use that to specify
things specific to Ecore (like instance class names).


Suzette Samoojh wrote:
> I need to add custom Primitive Types and map those to concrete Java classes
> when I generate an ecore. How do I go about doing so? Everything I've tried
> so far hasn't worked.
>
> With Rose I would stereotype my primitive type as a <<datatype>> and add the
> java class as an attribute. I've tried doing the same here, but that didn't
> work. Only the predefined primitive types generate correctly for me.
>
> Thanks,
> Suzette Samoojh
>
>
>
Re: Primitive Types - UML to EMF Generation [message #626242 is a reply to message #477104] Wed, 19 March 2008 05:00 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25740
Registered: July 2009
Senior Member
Suzette,

There's an Ecore profile you can apply and then use that to specify
things specific to Ecore (like instance class names).


Suzette Samoojh wrote:
> I need to add custom Primitive Types and map those to concrete Java classes
> when I generate an ecore. How do I go about doing so? Everything I've tried
> so far hasn't worked.
>
> With Rose I would stereotype my primitive type as a <<datatype>> and add the
> java class as an attribute. I've tried doing the same here, but that didn't
> work. Only the predefined primitive types generate correctly for me.
>
> Thanks,
> Suzette Samoojh
>
>
>
Previous Topic:[Announce] MDT UML2 2.2.0 I200803111920 is available
Next Topic:Multiple return parameters
Goto Forum:
  


Current Time: Wed Apr 16 16:04:42 EDT 2014

Powered by FUDForum. Page generated in 0.01563 seconds