|[Xpand] Access ClassAttribute before DEFINE Class [message #762252]
||Wed, 07 December 2011 14:03
Registered: December 2011
I'm very new to Xpand and I have the following problem.
I got a Class "Template" with an Attribute "type" which is the "Root class" of my model.
I want to do something like:
<< IF <<type>>!="String">>
<<DEFINE main FOR Template>>
Is it possible to do this this way or through another Xpand-mechanism?
From an OO point of view it could seem stupid to try to access the attribute of an object before the object exists, but as I said I'm new to the language.
Mainly I do ask this question, because I perceived, if I write the shown part into my x.xpt I wouldn't get any fault symbols for syntax errors in current Eclipse Modelling distribution even if I implement faults like <<EDEF>> instead of <<ENDDEFINE>> in later parts of the x.xpt.
Thanks in advance
Powered by FUDForum
. Page generated in 0.01600 seconds