|
|
|
Re: Load EMF instance model from xmi file and traverse it [message #1475413 is a reply to message #1474701] |
Sun, 16 November 2014 07:37 |
Ed Merks Messages: 33216 Registered: July 2009 |
Senior Member |
|
|
Furkan,
Comments below.
On 15/11/2014 6:15 PM, furkan tanrıverdi wrote:
> I know generating genmodel and model, editor and other plugins.
So you know how to load and save instances, but you show code that's
trying to read using DOM. Why is that?
> What I want to know is can I make inferences from an instance model.
Yes, of course. EObject.eClass will return the object's EClass.
Resource.getAllContents returns an iterator that walks all instances in
a resource.
> I am trying get EClasses, EAttributes from instance.
EClass.getEAllAttributes.
> Those codes just a different try. I hope I could explain myself
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03989 seconds