|replace object without [message #1791501]
||Sun, 01 July 2018 08:38
| Michiel Fortuin
Registered: May 2018
Is it possible to replace an object in a model by a sister object(their classes have a common supertype), without knowing their container class?
A small example:
So A1, A2, A3, ..., Ai has a containment relation to B.
B is an abstract class.
C and D extends B.
And if an C exist then it should be replaced by D, without defining in which container C resides.
Also in my case the number of containers (e.g. A1, A2, etc) is quite large, so it would help to have a general solution.
Thanks in advance,
Powered by FUDForum
. Page generated in 0.02521 seconds