user-defined Primitive types in static profiles [message #477462] |
Fri, 30 May 2008 10:06  |
Eclipse User |
|
|
|
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 #626673 is a reply to message #477462] |
Mon, 09 June 2008 11:26  |
Eclipse User |
|
|
|
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
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02615 seconds