Skip to main content


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 22:35 Go to next message
No real name is currently offline No real nameFriend
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 09:00 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
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
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Primitive Types - UML to EMF Generation [message #626242 is a reply to message #477104] Wed, 19 March 2008 09:00 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
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
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[Announce] MDT UML2 2.2.0 I200803111920 is available
Next Topic:Multiple return parameters
Goto Forum:
  


Current Time: Thu Apr 18 03:05:34 GMT 2024

Powered by FUDForum. Page generated in 0.02349 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top