Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » how to access the subclass from the superclass(how to access the subclass from the superclass in EMF metamodel, using a java code)
how to access the subclass from the superclass [message #1060560] Sun, 26 May 2013 21:42
Fatima Salhi is currently offline Fatima SalhiFriend
Messages: 2
Registered: May 2013
Junior Member

hi everyone
Here are some of my EMF meta model:

index.php/fa/15051/0/

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?

Previous Topic:hi there
Next Topic:Jetty monitoring
Goto Forum:
  


Current Time: Thu Mar 28 14:11:11 GMT 2024

Powered by FUDForum. Page generated in 0.04222 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top