How to read the xmi:id attribute in a UML model? [message #626870] |
Tue, 12 August 2008 05:56 |
Swami Messages: 6 Registered: July 2009 |
Junior Member |
|
|
Hi, I am trying to parse a UML model created in RSA V7.x. I am using the
UML2 API to parse. Below is a snippet of the model -
...
<uml:Model xmi:id="_CZSzQCtuEd2YeLIXgEz5pg" name="Test Model">
...
<packagedElement xmi:type="uml:Interface"
xmi:id="_UbMKQCuhEd2ibIXNy_4Bag" name="Manage Test"/>
<packagedElement xmi:type="uml:Usage" xmi:id="_tAMUoCuiEd2mV4EVsZozLg"
supplier="_eBv_YCuiEd2mV4EVsZozLg" client="_ZshWcCugEd2ibIXNy_4Bag"/>
...
I am looking to read the 'id' attribute of elements within the model, for
instance the 'Model' element or the 'packagedElement' element above.
Looking through the UML2 API, there doesn't appear to be a way to do this.
Does someone know of a way to access these 'id' attributes?
Thanks & Cheers.
|
|
|
Powered by
FUDForum. Page generated in 0.02510 seconds