Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Having issue with getting parent properties
Having issue with getting parent properties [message #1863510] Wed, 07 February 2024 05:35 Go to next message
Sachin Goyal is currently offline Sachin GoyalFriend
Messages: 19
Registered: February 2024
Junior Member
I have four classes A, B, C, D. Now, I have one object of B and one object of C in every object of A. In B i have a list and in c i have a list of object of class D.
Now, for every object in D i want to access the object of B.

Every class extend MinimalEObjectImpl.Container class.

Let's write in down:

class A{
protected B b;
protected C c;
A(){
super();
}
}

class B{
List<Integer> al;
B(){
super();
}}

class C{
List<D> al;
C(){
super();
}
}

class D{
List<Integer> al;
D(){
super();
}
}

now, object of a contains object of b and c and object of c contains a list of objects of D.
I want to get the specification of the list that is present in object of B to give some values in the list of an object of type D.
How can i do that?


Thanks in advance.
Re: Having issue with getting parent properties [message #1863521 is a reply to message #1863510] Wed, 07 February 2024 15:12 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
There's a bit of hint that this is a modeling question. But it's worded in such a way that it's most a riddle...

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Having issue with getting parent properties; Explained question [message #1863523 is a reply to message #1863521] Wed, 07 February 2024 15:56 Go to previous message
Sachin Goyal is currently offline Sachin GoyalFriend
Messages: 19
Registered: February 2024
Junior Member
Yes, This is EMF modelling based project.
I will try to explain a little more..
I have a class A and for each of that class object we have one, one object of class B and C linked to that object of class A.
Now, in B, I have a list of something.
In c, I have a list of objects of type D class.
In D class, I have some properties for which i need to access the list present in B.
How can i do that?
Hirerachy of Objects:
A
B
C
D
Previous Topic:Eclipse hangs when doing copy/paste
Next Topic:Does Eclipse support MSIX virtual packaging?
Goto Forum:
  


Current Time: Sat Apr 27 19:25:14 GMT 2024

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

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

Back to the top