UML2Ecore converter [message #478455] |
Tue, 26 May 2009 09:19  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.06392 seconds