Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » UML2Ecore converter
UML2Ecore converter [message #478455] Tue, 26 May 2009 13:19 Go to next message
Chokri Mraidha is currently offline Chokri MraidhaFriend
Messages: 28
Registered: July 2009
Junior Member
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 19:17 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
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 19:17 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
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: Fri Mar 29 11:05:22 GMT 2024

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

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

Back to the top