| how to access the subclass from the superclass [message #1060560] |
Sun, 26 May 2013 17:42 |
Fatima Salhi Messages: 2 Registered: May 2013 |
Junior Member |
|
|
hi everyone
Here are some of my EMF meta model:

I want to retrieve the names of all primitives
here is my java code:
Systeme s = (Systeme)resource.getContents().get(0);
//Component
EList<Component> list1 = s.getComponente();
Iterator i1 = list1.iterator();
while (i1.hasNext()){
Component c =(Component) i1.next();
java.lang.System.out.println(c.getNom());
}
but this code displays the names of all the Component elements
how can I access the Primitive class from the Component class?
|
|
|
Powered by
FUDForum. Page generated in 0.01789 seconds