Skip to main content



      Home
Home » Modeling » UML2 » XMI question wrt Association
XMI question wrt Association [message #474388] Thu, 19 July 2007 11:32 Go to next message
Eclipse UserFriend
Originally posted by: user.domain.invalid

Dear All,

I am doing an XSLT which uses the EMFT compare tool to create an XHTML
report on the differences between 2 models.

The only minor problem I am having is to see how in UML2/EMF XMI
Associations work.

Basically all I want to say is "the Association linking X with Y has
been deleted" or "An association between X and Y has been created".

Do Associations always link OwnedAttributes?

I am using the output form IBM RSA 6 & there appears to be some
variability e.g.

<packagedElement xmi:type="uml:Association"
xmi:id="_3iuUKg3aEdy0fvloa5NWrg" memberEnd="_3iuQcw3aEdy0fvloa5NWrg
_3iuULA3aEdy0fvloa5NWrg">
<ownedEnd xmi:id="_3iuULA3aEdy0fvloa5NWrg"
type="_3iuQTQ3aEdy0fvloa5NWrg" association="_3iuUKg3aEdy0fvloa5NWrg">
<upperValue xmi:type="uml:LiteralUnlimitedNatural"
xmi:id="_3iuULQ3aEdy0fvloa5NWrg" value="1"/>
<lowerValue xmi:type="uml:LiteralInteger"
xmi:id="_3iuULg3aEdy0fvloa5NWrg" value="1"/>
</ownedEnd>
</packagedElement>

<packagedElement xmi:type="uml:Association"
xmi:id="_3iuULw3aEdy0fvloa5NWrg" memberEnd="_3iuSFQ3aEdy0fvloa5NWrg
_3iuUMA3aEdy0fvloa5NWrg">
<ownedEnd xmi:id="_3iuUMA3aEdy0fvloa5NWrg" name="person"
visibility="private" type="_3iuSEA3aEdy0fvloa5NWrg"
association="_3iuULw3aEdy0fvloa5NWrg">
</ownedEnd>
</packagedElement>



So what ID'es do I use in the above examples to find the 2
OwnedAssociations at each end ?


TIA

Adam
Re: XMI question wrt Association [message #474389 is a reply to message #474388] Thu, 19 July 2007 13:41 Go to previous message
Eclipse UserFriend
Adam,

Properties that represent ends of the associations are always referenced by
an association as its member ends, so you'd be interested in the 'memberEnd'
XML element/attribute. Sometimes an association is not navigable, in which
case it will be owned by the association and hence also be listed as an
owned end of the association (i.e. in the 'ownedEnd' XML element).

Kenn

"AdamF" <user@domain.invalid> wrote in message
news:f7o060$8do$1@build.eclipse.org...
> Dear All,
>
> I am doing an XSLT which uses the EMFT compare tool to create an XHTML
> report on the differences between 2 models.
>
> The only minor problem I am having is to see how in UML2/EMF XMI
> Associations work.
>
> Basically all I want to say is "the Association linking X with Y has been
> deleted" or "An association between X and Y has been created".
>
> Do Associations always link OwnedAttributes?
>
> I am using the output form IBM RSA 6 & there appears to be some
> variability e.g.
>
> <packagedElement xmi:type="uml:Association"
> xmi:id="_3iuUKg3aEdy0fvloa5NWrg" memberEnd="_3iuQcw3aEdy0fvloa5NWrg
> _3iuULA3aEdy0fvloa5NWrg">
> <ownedEnd xmi:id="_3iuULA3aEdy0fvloa5NWrg"
> type="_3iuQTQ3aEdy0fvloa5NWrg" association="_3iuUKg3aEdy0fvloa5NWrg">
> <upperValue xmi:type="uml:LiteralUnlimitedNatural"
> xmi:id="_3iuULQ3aEdy0fvloa5NWrg" value="1"/>
> <lowerValue xmi:type="uml:LiteralInteger"
> xmi:id="_3iuULg3aEdy0fvloa5NWrg" value="1"/>
> </ownedEnd>
> </packagedElement>
>
> <packagedElement xmi:type="uml:Association"
> xmi:id="_3iuULw3aEdy0fvloa5NWrg" memberEnd="_3iuSFQ3aEdy0fvloa5NWrg
> _3iuUMA3aEdy0fvloa5NWrg">
> <ownedEnd xmi:id="_3iuUMA3aEdy0fvloa5NWrg" name="person"
> visibility="private" type="_3iuSEA3aEdy0fvloa5NWrg"
> association="_3iuULw3aEdy0fvloa5NWrg">
> </ownedEnd>
> </packagedElement>
>
>
>
> So what ID'es do I use in the above examples to find the 2
> OwnedAssociations at each end ?
>
>
> TIA
>
> Adam
Re: XMI question wrt Association [message #623912 is a reply to message #474388] Thu, 19 July 2007 13:41 Go to previous message
Eclipse UserFriend
Adam,

Properties that represent ends of the associations are always referenced by
an association as its member ends, so you'd be interested in the 'memberEnd'
XML element/attribute. Sometimes an association is not navigable, in which
case it will be owned by the association and hence also be listed as an
owned end of the association (i.e. in the 'ownedEnd' XML element).

Kenn

"AdamF" <user@domain.invalid> wrote in message
news:f7o060$8do$1@build.eclipse.org...
> Dear All,
>
> I am doing an XSLT which uses the EMFT compare tool to create an XHTML
> report on the differences between 2 models.
>
> The only minor problem I am having is to see how in UML2/EMF XMI
> Associations work.
>
> Basically all I want to say is "the Association linking X with Y has been
> deleted" or "An association between X and Y has been created".
>
> Do Associations always link OwnedAttributes?
>
> I am using the output form IBM RSA 6 & there appears to be some
> variability e.g.
>
> <packagedElement xmi:type="uml:Association"
> xmi:id="_3iuUKg3aEdy0fvloa5NWrg" memberEnd="_3iuQcw3aEdy0fvloa5NWrg
> _3iuULA3aEdy0fvloa5NWrg">
> <ownedEnd xmi:id="_3iuULA3aEdy0fvloa5NWrg"
> type="_3iuQTQ3aEdy0fvloa5NWrg" association="_3iuUKg3aEdy0fvloa5NWrg">
> <upperValue xmi:type="uml:LiteralUnlimitedNatural"
> xmi:id="_3iuULQ3aEdy0fvloa5NWrg" value="1"/>
> <lowerValue xmi:type="uml:LiteralInteger"
> xmi:id="_3iuULg3aEdy0fvloa5NWrg" value="1"/>
> </ownedEnd>
> </packagedElement>
>
> <packagedElement xmi:type="uml:Association"
> xmi:id="_3iuULw3aEdy0fvloa5NWrg" memberEnd="_3iuSFQ3aEdy0fvloa5NWrg
> _3iuUMA3aEdy0fvloa5NWrg">
> <ownedEnd xmi:id="_3iuUMA3aEdy0fvloa5NWrg" name="person"
> visibility="private" type="_3iuSEA3aEdy0fvloa5NWrg"
> association="_3iuULw3aEdy0fvloa5NWrg">
> </ownedEnd>
> </packagedElement>
>
>
>
> So what ID'es do I use in the above examples to find the 2
> OwnedAssociations at each end ?
>
>
> TIA
>
> Adam
Previous Topic:XMI question wrt Association
Next Topic:[Announce] MDT UML2 2.1.1 M200707191455 is available
Goto Forum:
  


Current Time: Sun Jul 06 23:57:01 EDT 2025

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

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

Back to the top