Ecore Model 2 UML Model [message #624736] |
Fri, 07 September 2007 14:18 |
Eclipse User |
|
|
|
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 ---
|
|
|
Powered by
FUDForum. Page generated in 0.03165 seconds