|
Re: InterfaceRealization in XMI [message #915729 is a reply to message #915597] |
Mon, 17 September 2012 21:13 |
|
Hi, Tex,
The second snippet creates an element that isn't an
InterfaceRealization. It's just a Realization. Moreover, it isn't
distinguished as fulfilling the role of an interface realization
because it's just lumped into the grab-bag of stuff in the
packaged-elements collection, instead of the interface-realizations
collection.
The first snippet conveys more precisely the meaning of your model.
HTH,
Christian
On 2012-09-17 15:54:45 +0000, Tex Iano said:
> Hi,
>
> I am wondering what is the right way to save an interface realization in XMI.
>
> The Eclipse UML uses:
>
>
> <packagedElement xmi:type="uml:Class"
> xmi:id="_x3E1MQDXEeKkMdPt4WajJA"
> clientDependency="_x3E1MwDXEeKkMdPt4WajJA _x3FcQADXEeKkMdPt4WajJA"
> name="MyClass">
> <ownedAttribute xmi:id="_x3FcQQDXEeKkMdPt4WajJA"
> name="provider" type="_x3E1MADXEeKkMdPt4WajJA" aggregation="composite"/>
> <ownedAttribute xmi:id="_x3FcQgDXEeKkMdPt4WajJA"
> name="requester" type="_x3DnEgDXEeKkMdPt4WajJA"
> aggregation="composite"/>
> <interfaceRealization xmi:id="_x3E1MwDXEeKkMdPt4WajJA"
> name="AmazonSearchPortAmazonSearchPortRealization"
> client="_x3E1MQDXEeKkMdPt4WajJA" supplier="_x3E1MADXEeKkMdPt4WajJA"
> contract="_x3E1MADXEeKkMdPt4WajJA"/>
> </packagedElement>
>
>
> The Enterprise Architect for example uses this version:
>
>
> <packagedElement xmi:type="uml:Realization"
> xmi:id="EAID_1A4187EB_6C57_426f_AEB1_2586843CAA90"
> supplier="EAID_93495DE8_4FA0_4540_9A47_1B8AFFE8BC8E"
> client="EAID_0B1ABE81_44F4_4929_A400_D5CC185E090F"/>
>
>
> Do you know what is the right way?
>
> Regards,
>
> Tex
|
|
|
|
Powered by
FUDForum. Page generated in 0.03258 seconds