Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[emf-dev] Reading Model

I have have two questions

1) I want to read Class Model (not object model) that is saved XMI 1.0 and 
UML1.3. I have used emf and XMI framework older version but no success all 
online help and books talk about how to load object model but no one talks 
about how to load Class Models. in XMI framework I tried this.

XMIFile f = XMIFile.load(filename, XMIFile.DEFAULT, false);
DeclarationFactory df = new DeclarationFactory();
Iterator decls = 
df.makeDeclarations(f.getObjects().iterator()).iterator();
m = new Model("MYClaasModel", decls);

But doesn't give me supperclasses, subclasses and multiplicitites. And 
here f.getObjects() looks bad to me because I have no objects in the file just 
class model. Please do tell me.


2) Second questions, does EMF allows to load XMI 1.0 docs or it only 
allows XMI 2.0.

Thanks
Farooq




Back to the top