Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » EMF Code generation from UML2 model fails
EMF Code generation from UML2 model fails [message #477841] Fri, 17 October 2008 08:40 Go to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hi,

problems don't stop :) Currently, i try to convert a UML2 model (with union
and subset) into a valid Ecore file. It contains an ownership relationship,
similar to the owner/ownedElements from the UML::Class::Kernel::Element.

ModelElement (EClass)
owner (EReference): changeable, non-transient, non-volatile, non-derived
ownedElements (EReference): changeable, non-transient, non-volatile,
non-derived

These both references are opposites. The problem is, that no attribute
ownedElements is generated into the ModelElement class. All the successor
methods are defined, but they produce a Syntax error, because of that
missing attributes. I can fullfill the missing attriibute by hand, but i
think, this is not the best way to handle such a problem?

Thx
TImothy
Re: EMF Code generation from UML2 model fails [message #477843 is a reply to message #477841] Fri, 17 October 2008 14:30 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Timothy,

Do you have a sample .uml model with .genmodel that I can use to reproduce
what you are seeing?
There may be some incompatible combination of properties that produce an
error.
Please raise a bugzilla if this is an issue in the UML2 project itself.

Cheers,
- James.


"Timothy Marc" <timothymarc@freenet.de> wrote in message
news:gd9itg$al$1@build.eclipse.org...
> Hi,
>
> problems don't stop :) Currently, i try to convert a UML2 model (with
> union and subset) into a valid Ecore file. It contains an ownership
> relationship, similar to the owner/ownedElements from the
> UML::Class::Kernel::Element.
>
> ModelElement (EClass)
> owner (EReference): changeable, non-transient, non-volatile,
> non-derived
> ownedElements (EReference): changeable, non-transient, non-volatile,
> non-derived
>
> These both references are opposites. The problem is, that no attribute
> ownedElements is generated into the ModelElement class. All the successor
> methods are defined, but they produce a Syntax error, because of that
> missing attributes. I can fullfill the missing attriibute by hand, but i
> think, this is not the best way to handle such a problem?
>
> Thx
> TImothy
>
>
>
Re: EMF Code generation from UML2 model fails [message #477848 is a reply to message #477843] Mon, 20 October 2008 13:31 Go to previous messageGo to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Dear James,

yes, it was a problem in the model. I've tried the same with a simple model
and it works.
But one question concerning the Union/Subset-List-Types of the UML2
codegenerator.

After creating an Ecore out of a really simple UML model, the Ecore was
annotated with some union/subsets-Annotations. So far so good. But after
code generation only the uniosn-Annotations resultng in a
DerivedUnionEObjectList-Type. All the subsets-relationships are treated as
ordinary EMF-List. I'm pretty sure, that i got him work, but currently,
either wich input i provide, it never produces these uml2 specific types.

I'm really confused...

Thx
Timothy
"James Bruck" <jbruck@ca.ibm.com> schrieb im Newsbeitrag
news:gda7g0$j2e$1@build.eclipse.org...
> Hi Timothy,
>
> Do you have a sample .uml model with .genmodel that I can use to reproduce
> what you are seeing?
> There may be some incompatible combination of properties that produce an
> error.
> Please raise a bugzilla if this is an issue in the UML2 project itself.
>
> Cheers,
> - James.
>
>
> "Timothy Marc" <timothymarc@freenet.de> wrote in message
> news:gd9itg$al$1@build.eclipse.org...
>> Hi,
>>
>> problems don't stop :) Currently, i try to convert a UML2 model (with
>> union and subset) into a valid Ecore file. It contains an ownership
>> relationship, similar to the owner/ownedElements from the
>> UML::Class::Kernel::Element.
>>
>> ModelElement (EClass)
>> owner (EReference): changeable, non-transient, non-volatile,
>> non-derived
>> ownedElements (EReference): changeable, non-transient, non-volatile,
>> non-derived
>>
>> These both references are opposites. The problem is, that no attribute
>> ownedElements is generated into the ModelElement class. All the successor
>> methods are defined, but they produce a Syntax error, because of that
>> missing attributes. I can fullfill the missing attriibute by hand, but i
>> think, this is not the best way to handle such a problem?
>>
>> Thx
>> TImothy
>>
>>
>>
>
>
Re: EMF Code generation from UML2 model fails [message #477876 is a reply to message #477848] Thu, 23 October 2008 16:45 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Timothy,

Depending on the multiplicities of your subset/superset properties, you may
or may not see the subset/superset lists being used by generated code. If
you attach a sample model that you think is problematic, we'll take a
look...

Kenn

"Timothy Marc" <timothymarc@freenet.de> wrote in message
news:gdi12i$8ue$1@build.eclipse.org...
> Dear James,
>
> yes, it was a problem in the model. I've tried the same with a simple
> model and it works.
> But one question concerning the Union/Subset-List-Types of the UML2
> codegenerator.
>
> After creating an Ecore out of a really simple UML model, the Ecore was
> annotated with some union/subsets-Annotations. So far so good. But after
> code generation only the uniosn-Annotations resultng in a
> DerivedUnionEObjectList-Type. All the subsets-relationships are treated as
> ordinary EMF-List. I'm pretty sure, that i got him work, but currently,
> either wich input i provide, it never produces these uml2 specific types.
>
> I'm really confused...
>
> Thx
> Timothy
> "James Bruck" <jbruck@ca.ibm.com> schrieb im Newsbeitrag
> news:gda7g0$j2e$1@build.eclipse.org...
>> Hi Timothy,
>>
>> Do you have a sample .uml model with .genmodel that I can use to
>> reproduce what you are seeing?
>> There may be some incompatible combination of properties that produce an
>> error.
>> Please raise a bugzilla if this is an issue in the UML2 project itself.
>>
>> Cheers,
>> - James.
>>
>>
>> "Timothy Marc" <timothymarc@freenet.de> wrote in message
>> news:gd9itg$al$1@build.eclipse.org...
>>> Hi,
>>>
>>> problems don't stop :) Currently, i try to convert a UML2 model (with
>>> union and subset) into a valid Ecore file. It contains an ownership
>>> relationship, similar to the owner/ownedElements from the
>>> UML::Class::Kernel::Element.
>>>
>>> ModelElement (EClass)
>>> owner (EReference): changeable, non-transient, non-volatile,
>>> non-derived
>>> ownedElements (EReference): changeable, non-transient, non-volatile,
>>> non-derived
>>>
>>> These both references are opposites. The problem is, that no attribute
>>> ownedElements is generated into the ModelElement class. All the
>>> successor methods are defined, but they produce a Syntax error, because
>>> of that missing attributes. I can fullfill the missing attriibute by
>>> hand, but i think, this is not the best way to handle such a problem?
>>>
>>> Thx
>>> TImothy
>>>
>>>
>>>
>>
>>
>
>
Re: EMF Code generation from UML2 model fails [message #627048 is a reply to message #477841] Fri, 17 October 2008 14:30 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Timothy,

Do you have a sample .uml model with .genmodel that I can use to reproduce
what you are seeing?
There may be some incompatible combination of properties that produce an
error.
Please raise a bugzilla if this is an issue in the UML2 project itself.

Cheers,
- James.


"Timothy Marc" <timothymarc@freenet.de> wrote in message
news:gd9itg$al$1@build.eclipse.org...
> Hi,
>
> problems don't stop :) Currently, i try to convert a UML2 model (with
> union and subset) into a valid Ecore file. It contains an ownership
> relationship, similar to the owner/ownedElements from the
> UML::Class::Kernel::Element.
>
> ModelElement (EClass)
> owner (EReference): changeable, non-transient, non-volatile,
> non-derived
> ownedElements (EReference): changeable, non-transient, non-volatile,
> non-derived
>
> These both references are opposites. The problem is, that no attribute
> ownedElements is generated into the ModelElement class. All the successor
> methods are defined, but they produce a Syntax error, because of that
> missing attributes. I can fullfill the missing attriibute by hand, but i
> think, this is not the best way to handle such a problem?
>
> Thx
> TImothy
>
>
>
Re: EMF Code generation from UML2 model fails [message #627051 is a reply to message #477843] Mon, 20 October 2008 13:31 Go to previous message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Dear James,

yes, it was a problem in the model. I've tried the same with a simple model
and it works.
But one question concerning the Union/Subset-List-Types of the UML2
codegenerator.

After creating an Ecore out of a really simple UML model, the Ecore was
annotated with some union/subsets-Annotations. So far so good. But after
code generation only the uniosn-Annotations resultng in a
DerivedUnionEObjectList-Type. All the subsets-relationships are treated as
ordinary EMF-List. I'm pretty sure, that i got him work, but currently,
either wich input i provide, it never produces these uml2 specific types.

I'm really confused...

Thx
Timothy
"James Bruck" <jbruck@ca.ibm.com> schrieb im Newsbeitrag
news:gda7g0$j2e$1@build.eclipse.org...
> Hi Timothy,
>
> Do you have a sample .uml model with .genmodel that I can use to reproduce
> what you are seeing?
> There may be some incompatible combination of properties that produce an
> error.
> Please raise a bugzilla if this is an issue in the UML2 project itself.
>
> Cheers,
> - James.
>
>
> "Timothy Marc" <timothymarc@freenet.de> wrote in message
> news:gd9itg$al$1@build.eclipse.org...
>> Hi,
>>
>> problems don't stop :) Currently, i try to convert a UML2 model (with
>> union and subset) into a valid Ecore file. It contains an ownership
>> relationship, similar to the owner/ownedElements from the
>> UML::Class::Kernel::Element.
>>
>> ModelElement (EClass)
>> owner (EReference): changeable, non-transient, non-volatile,
>> non-derived
>> ownedElements (EReference): changeable, non-transient, non-volatile,
>> non-derived
>>
>> These both references are opposites. The problem is, that no attribute
>> ownedElements is generated into the ModelElement class. All the successor
>> methods are defined, but they produce a Syntax error, because of that
>> missing attributes. I can fullfill the missing attriibute by hand, but i
>> think, this is not the best way to handle such a problem?
>>
>> Thx
>> TImothy
>>
>>
>>
>
>
Re: EMF Code generation from UML2 model fails [message #627076 is a reply to message #477848] Thu, 23 October 2008 16:45 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Timothy,

Depending on the multiplicities of your subset/superset properties, you may
or may not see the subset/superset lists being used by generated code. If
you attach a sample model that you think is problematic, we'll take a
look...

Kenn

"Timothy Marc" <timothymarc@freenet.de> wrote in message
news:gdi12i$8ue$1@build.eclipse.org...
> Dear James,
>
> yes, it was a problem in the model. I've tried the same with a simple
> model and it works.
> But one question concerning the Union/Subset-List-Types of the UML2
> codegenerator.
>
> After creating an Ecore out of a really simple UML model, the Ecore was
> annotated with some union/subsets-Annotations. So far so good. But after
> code generation only the uniosn-Annotations resultng in a
> DerivedUnionEObjectList-Type. All the subsets-relationships are treated as
> ordinary EMF-List. I'm pretty sure, that i got him work, but currently,
> either wich input i provide, it never produces these uml2 specific types.
>
> I'm really confused...
>
> Thx
> Timothy
> "James Bruck" <jbruck@ca.ibm.com> schrieb im Newsbeitrag
> news:gda7g0$j2e$1@build.eclipse.org...
>> Hi Timothy,
>>
>> Do you have a sample .uml model with .genmodel that I can use to
>> reproduce what you are seeing?
>> There may be some incompatible combination of properties that produce an
>> error.
>> Please raise a bugzilla if this is an issue in the UML2 project itself.
>>
>> Cheers,
>> - James.
>>
>>
>> "Timothy Marc" <timothymarc@freenet.de> wrote in message
>> news:gd9itg$al$1@build.eclipse.org...
>>> Hi,
>>>
>>> problems don't stop :) Currently, i try to convert a UML2 model (with
>>> union and subset) into a valid Ecore file. It contains an ownership
>>> relationship, similar to the owner/ownedElements from the
>>> UML::Class::Kernel::Element.
>>>
>>> ModelElement (EClass)
>>> owner (EReference): changeable, non-transient, non-volatile,
>>> non-derived
>>> ownedElements (EReference): changeable, non-transient, non-volatile,
>>> non-derived
>>>
>>> These both references are opposites. The problem is, that no attribute
>>> ownedElements is generated into the ModelElement class. All the
>>> successor methods are defined, but they produce a Syntax error, because
>>> of that missing attributes. I can fullfill the missing attriibute by
>>> hand, but i think, this is not the best way to handle such a problem?
>>>
>>> Thx
>>> TImothy
>>>
>>>
>>>
>>
>>
>
>
Previous Topic:Complete Project Development
Next Topic:Using UML2 mechanism
Goto Forum:
  


Current Time: Fri Aug 12 21:39:25 GMT 2022

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

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

Back to the top