Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTOM] Mapping calls in strict mode
[QVTOM] Mapping calls in strict mode [message #63697] Wed, 10 October 2007 12:22 Go to next message
Alfons Laarman is currently offline Alfons LaarmanFriend
Messages: 35
Registered: July 2009
Member
Hello everybody,

I am trying to understand the QVT specification and I have troubles with
the xmap keywork. The specs tell me it is a mapping call with strict
semantics/in strict mode. It says the following about mapping modes:
"A mapping operation can be invoked either in strict mode or in standard
mode - depending on the value of the isStrict Boolean property. In
strict mode the when clause is evaluated as a pre-condition. In
contrast, when the mapping is invoked in standard mode, the execution of
the mapping body is skipped and the null value is returned to the caller."
I do not understand what it means. Does it mean the when clause is
evaluated only in strict mode? Can somebody explain?


Regards,

Alfons
Re: [QVTOM] Mapping calls in strict mode [message #63763 is a reply to message #63697] Wed, 10 October 2007 15:36 Go to previous message
Sergey Boyko is currently offline Sergey BoykoFriend
Messages: 171
Registered: July 2009
Senior Member
Hello Alfons,

Spec stays that
a) "when" clause is execute always irrespective of invocation mode
b) in case of strict mode "when" throws an exception if it's not satisfied
c) in case of standard mode "when" is evaluated and if it's not
satisfied the execution of the mapping body is skipped and 'null' is
returned

Regards,
Sergey.

Alfons Laarman wrote:
> Hello everybody,
>
> I am trying to understand the QVT specification and I have troubles with
> the xmap keywork. The specs tell me it is a mapping call with strict
> semantics/in strict mode. It says the following about mapping modes:
> "A mapping operation can be invoked either in strict mode or in standard
> mode - depending on the value of the isStrict Boolean property. In
> strict mode the when clause is evaluated as a pre-condition. In
> contrast, when the mapping is invoked in standard mode, the execution of
> the mapping body is skipped and the null value is returned to the caller."
> I do not understand what it means. Does it mean the when clause is
> evaluated only in strict mode? Can somebody explain?
>
>
> Regards,
>
> Alfons
Previous Topic:[ATL] latest CVS version broken?
Next Topic:[ATL] ecore to ecore transformation
Goto Forum:
  


Current Time: Sun Apr 11 02:17:50 GMT 2021

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

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

Back to the top