Skip to main content



      Home
Home » Modeling » UML2 » UML2Ecore converter
UML2Ecore converter [message #478455] Tue, 26 May 2009 09:19 Go to next message
Eclipse UserFriend
Hi,

I am using UML 2 Ecore converter from UML2 editor menu. In my UML model I
have a PrimitiveType owning an operation. This type is converted to an
EDataType which can't own operations. I would like to convert this
PrimitiveType to an EClass in order to keep its operations in the Ecore
model and in the geenrated Java code. I have tried to stereotype this
PrimitiveType by the EClass stereotype, but this has no effect on the
convertion process.
Is it possible to parameterize the converter?

Cheers,

Chokri
Re: UML2Ecore converter [message #478472 is a reply to message #478455] Thu, 28 May 2009 15:17 Go to previous message
Eclipse UserFriend
Chokri,

Primitive types in aren't generally supposed to have operations in UML
(althought they tend to have "intrinsic" operations defined for them outside
of UML, e.g. mathematically), AFAIK. If you use an instance of UML DataType
instead, it will be converted to an Ecore class as expected...

Kenn

"Chokri Mraidha" <Chokri.Mraidha@cea.fr> wrote in message
news:gvgqk3$9vm$1@build.eclipse.org...
> Hi,
>
> I am using UML 2 Ecore converter from UML2 editor menu. In my UML model I
> have a PrimitiveType owning an operation. This type is converted to an
> EDataType which can't own operations. I would like to convert this
> PrimitiveType to an EClass in order to keep its operations in the Ecore
> model and in the geenrated Java code. I have tried to stereotype this
> PrimitiveType by the EClass stereotype, but this has no effect on the
> convertion process.
> Is it possible to parameterize the converter?
>
> Cheers,
>
> Chokri
>
>
>
Re: UML2Ecore converter [message #627647 is a reply to message #478455] Thu, 28 May 2009 15:17 Go to previous message
Eclipse UserFriend
Chokri,

Primitive types in aren't generally supposed to have operations in UML
(althought they tend to have "intrinsic" operations defined for them outside
of UML, e.g. mathematically), AFAIK. If you use an instance of UML DataType
instead, it will be converted to an Ecore class as expected...

Kenn

"Chokri Mraidha" <Chokri.Mraidha@cea.fr> wrote in message
news:gvgqk3$9vm$1@build.eclipse.org...
> Hi,
>
> I am using UML 2 Ecore converter from UML2 editor menu. In my UML model I
> have a PrimitiveType owning an operation. This type is converted to an
> EDataType which can't own operations. I would like to convert this
> PrimitiveType to an EClass in order to keep its operations in the Ecore
> model and in the geenrated Java code. I have tried to stereotype this
> PrimitiveType by the EClass stereotype, but this has no effect on the
> convertion process.
> Is it possible to parameterize the converter?
>
> Cheers,
>
> Chokri
>
>
>
Previous Topic:standard primitive types available?
Next Topic:[Announce] MDT UML2 3.0.0RC3 is available
Goto Forum:
  


Current Time: Wed Jul 23 00:18:02 EDT 2025

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

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

Back to the top