Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTO] global variables
[QVTO] global variables [message #462371] Sun, 02 August 2009 14:09 Go to next message
Eclipse UserFriend
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 Go to previous message
Sergey Boyko is currently offline Sergey BoykoFriend
Messages: 171
Registered: July 2009
Senior Member
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
Previous Topic:[QVTO] How to add children to a model element?
Next Topic:QVTO metamodel location
Goto Forum:
  


Current Time: Sat Apr 20 01:02:10 GMT 2024

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

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

Back to the top