Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Ecore Model 2 UML Model
Ecore Model 2 UML Model [message #624736] Fri, 07 September 2007 14:18
Eclipse UserFriend
Originally posted by: rmishra.tibco.com

Hi ,
I m trying to generate UML model out of EMF model using export model wizard
of UML2 plug-in but it seems the convention of composition relationship is
opposite of as it should be.

lets take an example --
there are 2 uml classes BookStore and BookType ,BookStore contains BookType,
the diagramatic representation should be something like this,

BookStore<----------------BookType

but the UML model generated by UML plug-in represents just opposite --

the uml file is something like this,

<uml:Model xmi:id="_bT4BMF1MEdydy4MnsAPyHQ" name="books">

<packagedElement xmi:type="uml:Class" xmi:id="_bT4BMV1MEdydy4MnsAPyHQ"
name="BookStore">

<ownedAttribute xmi:id="_bT4BMl1MEdydy4MnsAPyHQ" name="book"
type="_bT4BM11MEdydy4MnsAPyHQ" isOrdered="true" aggregation="composite"
association="_bT4BNV1MEdydy4MnsAPyHQ"/>

</packagedElement>

<packagedElement xmi:type="uml:Class" xmi:id="_bT4BM11MEdydy4MnsAPyHQ"
name="BookType">

<ownedAttribute xmi:id="_bT4BNF1MEdydy4MnsAPyHQ" name="publisher"
visibility="public" isOrdered="true" isUnique="false">

<type xmi:type="uml:PrimitiveType"
href=" pathmap://UML_LIBRARIES/EcorePrimitiveTypes.library.uml#EStr ing"/>

</ownedAttribute>

</packagedElement>

<packagedElement xmi:type="uml:Association" xmi:id="_bT4BNV1MEdydy4MnsAPyHQ"
memberEnd="_bT4BMl1MEdydy4MnsAPyHQ _bT4BNl1MEdydy4MnsAPyHQ">

<ownedEnd xmi:id="_bT4BNl1MEdydy4MnsAPyHQ" type="_bT4BMV1MEdydy4MnsAPyHQ"
association="_bT4BNV1MEdydy4MnsAPyHQ"/>

</packagedElement>



</uml:Model>

</xmi:XMI>


if u see the line <packagedElement xmi:type="uml:Association"
xmi:id="_bT4BNV1MEdydy4MnsAPyHQ" memberEnd="_bT4BMl1MEdydy4MnsAPyHQ
_bT4BNl1MEdydy4MnsAPyHQ">
the memberEnd value is from BookType to BookStore but it's supposed to be
other way round----



i am not very sure if i m right so can any body help me out with this ---
Previous Topic:Creating Activity model using the UML2 API
Next Topic:XMI serialization of UML2 model
Goto Forum:
  


Current Time: Fri Apr 26 18:06:02 GMT 2024

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

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

Back to the top