|Load model by DOM Node [message #1745233]
||Thu, 06 October 2016 18:24
| Erdal Karaca
Registered: July 2009
I have serialized an ecore model to an XML database. Now, I would like to deserialize the model. The database already returns the model root as a DOM Node/Element.|
Now, I tried to convert the DOM Node back to a model instance:
XMIResource xr = new XMIResourceImpl();
Unfortunately, I get this error message:
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Class 'CommonObject' is not found or is abstract. (, -1, -1)
CommonObject is the generated interface, so, the message is right. But shouldn't the XMI resource automatically detect/use its factory?
Note: I have disabled EMF types in the genmodel, i.e. CommonObject does not extend EObject.
What do I miss here?
Powered by FUDForum
. Page generated in 0.01762 seconds