Loading an instanciated model via EGL loadModel [message #571591] |
Wed, 29 July 2009 16:21 |
Darren Messages: 40 Registered: September 2009 |
Member |
|
|
Hello All,
Knowing that Dimitris is away I was wondering if anyone else is able to
spot what I must be doing wrong.
I'm trying to opertate on an instanciated model (*.model) via EGL in a
TOMCAT environment (see
http://code.google.com/p/epsilonlabs/wiki/EGLinTomcat)
I can load and query/traverse the metamodel in the examples and with my
own metamodels. My understanding of the Model Manager functions is that I
would do something like:
modelManager.registerMetaModel('myMeta.ecore');
modelManager.loadModel('AnyName','myModel.model','aPackageUR I');
Where aPackageURI is the name of a package URI within the myMeta.ecore.
I assume I should then be able to access the EClasses by their name i.e.
myClass.all();
However I get an error of "Undefined variable, type or model:"
I have also trying using the AnyName as well to no success.
I am assuming that this is loading the model as if I do a EObject.all() I
can see the elements I'm trying to access. They do not exist under
anything other than EObject and I'm currently stumped as to how to get the
root class to start traversing the data. Any pointers/help is much
appreciated.
Darren
|
|
|
Powered by
FUDForum. Page generated in 0.02420 seconds