XPand et inheritance [message #537063] |
Tue, 01 June 2010 04:43  |
Eclipse User |
|
|
|
Hi,
I have a problem to treat inheritance with XPand,
For example, I have this model :
class A {
private B : elementB;
}
interface B{}
classe C implements B {}
classe D implements B {}
classe E implements B {}
I will like to do specific treatment for each classes C D and E,
T XPand fille look like this :
«IMPORT model»;
«DEFINE a FOR A»
«EXPAND ... FOR this.elementB»
«ENDDEFINE»
I don't know what I have to write in the EXPAND line because this.elementB can be of type C, D or E..
we can imagine I have a file TreatC.xpt, TreatD.xpt or TreatE.xpt, to make a specific treatment for each type of element.
Thanks.
Jérémie
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08631 seconds