Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » How to query XMI file when the name of properties has colon
How to query XMI file when the name of properties has colon [message #1860305] Thu, 27 July 2023 19:11 Go to next message
fang yan is currently offline fang yanFriend
Messages: 27
Registered: October 2020
Junior Member
Hi,

I am trying to query the UML model in xmi format, but there is colon in the name of properties, e.g., xmi:type, hence return error.

<node xmi:type="uml:OpaqueAction" xmi:id="_z9VzbSSaEe63iYVF-k9xWw" name="A2" outgoing="_z9VzfSSaEe63iYVF-k9xWw" incoming="_z9VzeSSaEe63iYVF-k9xWw">

In this example above, how can I query the property of the node?
Is there a way to deal with colon?

Thanks
Fang
Re: How to query XMI file when the name of properties has colon [message #1860308 is a reply to message #1860305] Thu, 27 July 2023 19:32 Go to previous messageGo to next message
Horacio Hoyos is currently offline Horacio HoyosFriend
Messages: 242
Registered: October 2009
Location: Mexico
Senior Member

Seems your xmi file is for a UML model, so you need to load it using the UML metamodel.

If you are using an Epsilon (eol, evl, etl, etc.) RunConfiguration, in the models tab you need to create the model as a UML model.


Horacio Hoyos Rodriguez
Kinori Tech
Need professional support for Epsilon, EMF?
Go to: https://kinori.tech
Re: How to query XMI file when the name of properties has colon [message #1860311 is a reply to message #1860308] Thu, 27 July 2023 21:43 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2165
Registered: July 2009
Location: York, UK
Senior Member

Once you've done this, to query the name of the type of a model element x you can use

x.type.name.println(); // or alternatively
x.eClass().name.println();


Thanks,
Dimitris
Previous Topic:Helping a newbie creating an UML transforamtion application with EPSILON
Next Topic:sys_paths error in epsilon simulink api
Goto Forum:
  


Current Time: Sat Apr 27 08:53:53 GMT 2024

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

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

Back to the top