|Re: how load xml emf resource using api [message #1422227 is a reply to message #1422213]
||Fri, 12 September 2014 14:19
| Gabor Bergmann
Registered: July 2009
Made Leine wrote on Fri, 12 September 2014 15:54|
Yes . So , I loaded the instance model , but how can I query on this model ? I managed through API to load the model
I recommend reading the Javadoc of IncQueryEngine.
You should use e.g. IncQueryEngine.on(myResourceSet) to obtain an IncQuery instance that can evaluate queries against the model in the given resource set. You can then obtain Matcher objects associated with individual query specifications.
Made Leine wrote on Fri, 12 September 2014 15:54
I used IncQueryHeadlessAdvanced for headless example.
Well, this example method takes a parameter fileURI, which should be the URI of the instance model. However, you should not call this method, but rather read its code
The headless example code, as well as its advanced version, is meant as a code example for you to read, in order to demonstrate the usage of the EMF-IncQuery API. It is not the API itself, it merely uses the API in one specific way. If you read the code, I believe it will be easy to follow.
I hope this clears it up for you,
Powered by FUDForum
. Page generated in 0.02202 seconds