Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » InterfaceRealization in XMI
InterfaceRealization in XMI [message #915597] Mon, 17 September 2012 11:54 Go to next message
Tex Iano is currently offline Tex Iano
Messages: 99
Registered: February 2012
Member
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
Re: InterfaceRealization in XMI [message #915729 is a reply to message #915597] Mon, 17 September 2012 17:13 Go to previous messageGo to next message
Christian W. Damus is currently offline Christian W. Damus
Messages: 768
Registered: July 2009
Senior Member
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
Re: InterfaceRealization in XMI [message #917667 is a reply to message #915729] Thu, 20 September 2012 06:01 Go to previous message
Tex Iano is currently offline Tex Iano
Messages: 99
Registered: February 2012
Member
Ok, so I will provide a bug report for the tool vendor. Thanks.

Tex
Previous Topic:Strange behaviour with getAppliedStereoTypes(), getAppliedStereoType
Next Topic:OwnedComment vs. annotatedElement
Goto Forum:
  


Current Time: Wed Aug 20 02:49:51 EDT 2014

Powered by FUDForum. Page generated in 0.13365 seconds