Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTo] Dictionary Configuration Properties
[QVTo] Dictionary Configuration Properties [message #555632] Fri, 27 August 2010 13:06 Go to next message
Al  is currently offline Al Friend
Messages: 8
Registered: August 2010
Junior Member
I need a Dict as a global variable. I read that I have to use config properties as global variables, but they don't seem to accept Dict as their type. What should I do instead?

Re: [QVTo] Dictionary Configuration Properties [message #555637 is a reply to message #555632] Fri, 27 August 2010 13:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dhendriksREMOVE_THIS.tueREMOVE.THIS.nl

Hello Al,

> read that I have to use config
> properties as global variables

Configuration properties are for transformation options, that are
configurable by the user of the transformation. I would not use them for
internal, global variables.

> they don't seem to accept Dict as
> their type. What should I do instead?

there are some bugs in the Helios release of Eclipse related to
dictionaries (also in combination with properties). I reported them and
they were recently fixed. See:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=322756

and

https://bugs.eclipse.org/bugs/show_bug.cgi?id=322758

Maybe these fixes also solve your problems?

Best regards,
Dennis


Al wrote:
> I need a Dict as a global variable. I read that I have to use config
> properties as global variables, but they don't seem to accept Dict as
> their type. What should I do instead?
>
>
Re: [QVTo] Dictionary Configuration Properties [message #555698 is a reply to message #555637] Fri, 27 August 2010 17:12 Go to previous messageGo to next message
Al  is currently offline Al Friend
Messages: 8
Registered: August 2010
Junior Member
Thanks Dennis,

I agree that configuration properties are not meant to be used as global vars, however I am not aware if any other Qvto feature that is.

On a related note, is the call semantics of Qvt call-by-value? Is it possible to have call by reference instead?


Thanks
Al
Re: [QVTo] Dictionary Configuration Properties [message #555706 is a reply to message #555698] Fri, 27 August 2010 17:25 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi Al

I have successfully passed a Dictionary by reference to gather results
during one transformation pass.

Regards

Ed Willink

On 27/08/2010 18:12, Al wrote:
> Thanks Dennis,
>
> I agree that configuration properties are not meant to be used as global
> vars, however I am not aware if any other Qvto feature that is.
> On a related note, is the call semantics of Qvt call-by-value? Is it
> possible to have call by reference instead?
>
>
> Thanks
> Al
Re: [QVTo] Dictionary Configuration Properties [message #555893 is a reply to message #555698] Mon, 30 August 2010 06:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dhendriksREMOVE_THIS.tueREMOVE.THIS.nl

Hello Al,

> I agree that configuration properties are not meant to be used as
> global
> vars, however I am not aware if any other Qvto feature that is.

QVTo has both configuration and non-configuration properties. Instead of
"configuration property <name> : <type> = <value>" just use "property
<name> : <type> = <value>"...

Best regards,
Dennis


Al wrote:
> Thanks Dennis,
>
> I agree that configuration properties are not meant to be used as global
> vars, however I am not aware if any other Qvto feature that is.
> On a related note, is the call semantics of Qvt call-by-value? Is it
> possible to have call by reference instead?
>
>
> Thanks
> Al
Re: [QVTo] Dictionary Configuration Properties [message #555894 is a reply to message #555698] Mon, 30 August 2010 06:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dhendriksREMOVE_THIS.tueREMOVE.THIS.nl

Hello Al,

> On a related note, is the call semantics of Qvt call-by-value? Is it
> possible to have call by reference instead?

Are you asking about mappings, or helpers, or both? For mappings, you
can control this by using in/out/inout, I think.

Best regards,
Dennis


Al wrote:
> Thanks Dennis,
>
> I agree that configuration properties are not meant to be used as global
> vars, however I am not aware if any other Qvto feature that is.
> On a related note, is the call semantics of Qvt call-by-value? Is it
> possible to have call by reference instead?
>
>
> Thanks
> Al
Re: [QVTo] Dictionary Configuration Properties [message #555900 is a reply to message #555893] Mon, 30 August 2010 07:05 Go to previous message
Eclipse UserFriend
Originally posted by: dhendriksREMOVE_THIS.tueREMOVE.THIS.nl

Hello Al,

oh wait, configuration properties don't have values... But
non-configuration ones do! Anyway, just omit the "configuration" keyword
and you have 'normal' properties.

Best regards,
Dennis


Dennis Hendriks wrote:
> Hello Al,
>
> > I agree that configuration properties are not meant to be used as
> > global
> > vars, however I am not aware if any other Qvto feature that is.
>
> QVTo has both configuration and non-configuration properties. Instead of
> "configuration property <name> : <type> = <value>" just use "property
> <name> : <type> = <value>"...
>
> Best regards,
> Dennis
>
>
> Al wrote:
>> Thanks Dennis,
>>
>> I agree that configuration properties are not meant to be used as
>> global vars, however I am not aware if any other Qvto feature that is.
>> On a related note, is the call semantics of Qvt call-by-value? Is it
>> possible to have call by reference instead?
>>
>>
>> Thanks
>> Al
Previous Topic:Batch transformation
Next Topic:[QVTo] Executing transformation on dynamic input model
Goto Forum:
  


Current Time: Wed Apr 24 13:35:25 GMT 2024

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

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

Back to the top