[QVTO] global variables [message #462371] |
Sun, 02 August 2009 14:09  |
Eclipse User |
|
|
|
Originally posted by: formatzeh.gmx.de
Is it possible to specify global variables for a transformation file?
For example static strings which can be used for identifiers.
And are there some good sources where I can read about QVTO?
best regards,
Gilbert
|
|
|
Re: [QVTO] global variables [message #463749 is a reply to message #462371] |
Sun, 02 August 2009 17:45  |
Eclipse User |
|
|
|
Hi Gilbert ,
Replies are in-lined below.
Regards,
Sergey.
Gilbert Mirenque wrote:
> Is it possible to specify global variables for a transformation file?
> For example static strings which can be used for identifiers.
Global variables for the transformation can be defined using 'property'
keyword as follows:
modeltype ecore uses "http://www.eclipse.org/emf/2002/Ecore";
transformation MyTransformation();
property moduleProp : String = '';
main() {
var v := moduleProp;
}
QVTo supports configuration and intermediate properties as well. For
example:
configuration property cfgProp : String;
intermediate property EPackage::myFriend : String;
> And are there some good sources where I can read about QVTO?
There's some documentation about QVTo available in the "Documentation"
section: http://eclipse.org/m2m/qvto/doc/
Our wiki page gives a reference to the official QVT spec from OMG
http://wiki.eclipse.org/M2M/Operational_QVT_Language_(QVTO)
>
> best regards,
> Gilbert
|
|
|
Powered by
FUDForum. Page generated in 0.04421 seconds