XMI question wrt Association [message #474388] |
Thu, 19 July 2007 11:32  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04002 seconds