Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » user-defined Primitive types in static profiles
user-defined Primitive types in static profiles [message #477462] Fri, 30 May 2008 14:06 Go to next message
Eclipse UserFriend
Originally posted by: huascar.espinoza.cea.com

Hello,

I'm creating a Static Profile that imports a Model Library. The model
library includes some primitive types like Real or DateTime. When I create
the static profile, the java code considers that the Real and DateTime java
classes already exist. However, this is not the case.

Do you know how these classes should be implemented?

Thank you in advance,

Huascar


--

Huascar ESPINOZA, Ph.D.

CEA LIST

Model-Driven Engineering for Real-Time Embedded Systems

91191 GIF/YVETTE CEDEX

Phone/Fax: +33 1 69 08 45 87 / 20 82

FRANCE
Re: user-defined Primitive types in static profiles [message #477491 is a reply to message #477462] Mon, 09 June 2008 15:26 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Huascar,

If you use the already defined libraries from org.eclipse.uml2.uml.resources
such as JavaPrimitiveTypes, XMLPrimitiveTypes or EcorePrimitiveTypes then
there should be no need to generate code for these libraries since they map
directly to Ecore Types and are known to the UML2 to Ecore converter.

If you wish to create your own library for types such as Real or DateTime
then you could consider setting the instance type of those elements if they
map to existing classes or you could subclass UMLUtil to make the converter
aware of your special types and map them to existing types.

Cheers,
- James.

"Huascar Espinoza" <huascar.espinoza@cea.com> wrote in message
news:g1p1l6$mo7$1@build.eclipse.org...
> Hello,
>
> I'm creating a Static Profile that imports a Model Library. The model
> library includes some primitive types like Real or DateTime. When I create
> the static profile, the java code considers that the Real and DateTime
> java classes already exist. However, this is not the case.
>
> Do you know how these classes should be implemented?
>
> Thank you in advance,
>
> Huascar
>
>
> --
>
> Huascar ESPINOZA, Ph.D.
>
> CEA LIST
>
> Model-Driven Engineering for Real-Time Embedded Systems
>
> 91191 GIF/YVETTE CEDEX
>
> Phone/Fax: +33 1 69 08 45 87 / 20 82
>
> FRANCE
>
>
Re: user-defined Primitive types in static profiles [message #477497 is a reply to message #477491] Tue, 10 June 2008 07:58 Go to previous message
Eclipse UserFriend
Originally posted by: huascar.espinoza.cea.fr

Thanks you James,

I realized that some material also exists in the "Eclipse Modeling
Framework" book.

Regards,
Huascar

"James Bruck" <jbruck@ca.ibm.com> a
Re: user-defined Primitive types in static profiles [message #626673 is a reply to message #477462] Mon, 09 June 2008 15:26 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Huascar,

If you use the already defined libraries from org.eclipse.uml2.uml.resources
such as JavaPrimitiveTypes, XMLPrimitiveTypes or EcorePrimitiveTypes then
there should be no need to generate code for these libraries since they map
directly to Ecore Types and are known to the UML2 to Ecore converter.

If you wish to create your own library for types such as Real or DateTime
then you could consider setting the instance type of those elements if they
map to existing classes or you could subclass UMLUtil to make the converter
aware of your special types and map them to existing types.

Cheers,
- James.

"Huascar Espinoza" <huascar.espinoza@cea.com> wrote in message
news:g1p1l6$mo7$1@build.eclipse.org...
> Hello,
>
> I'm creating a Static Profile that imports a Model Library. The model
> library includes some primitive types like Real or DateTime. When I create
> the static profile, the java code considers that the Real and DateTime
> java classes already exist. However, this is not the case.
>
> Do you know how these classes should be implemented?
>
> Thank you in advance,
>
> Huascar
>
>
> --
>
> Huascar ESPINOZA, Ph.D.
>
> CEA LIST
>
> Model-Driven Engineering for Real-Time Embedded Systems
>
> 91191 GIF/YVETTE CEDEX
>
> Phone/Fax: +33 1 69 08 45 87 / 20 82
>
> FRANCE
>
>
Re: user-defined Primitive types in static profiles [message #626687 is a reply to message #477491] Tue, 10 June 2008 07:58 Go to previous message
Eclipse UserFriend
Originally posted by: huascar.espinoza.cea.fr

Thanks you James,

I realized that some material also exists in the "Eclipse Modeling
Framework" book.

Regards,
Huascar

"James Bruck" <jbruck@ca.ibm.com> a
Previous Topic:[Announce] MDT UML2 2.2.0RC4 is available
Next Topic:UML 2 Plugin
Goto Forum:
  


Current Time: Fri Apr 19 20:09:04 GMT 2024

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

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

Back to the top