Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » null is undefined
null is undefined [message #1767500] Thu, 06 July 2017 13:41 Go to next message
Banafsheh Azizi is currently offline Banafsheh AziziFriend
Messages: 328
Registered: July 2016
Senior Member
Hi,

when I write the below code, I have an error about NULL. Does not ATL support null?
rule Tree2Node {
	from
		t : source!Tree (t.name <> NUll)		
...
}


Member of MDSE Research Group
http://mdse.ui.ac.ir

[Updated on: Thu, 06 July 2017 15:42]

Report message to a moderator

Re: null is undefined [message #1767634 is a reply to message #1767500] Fri, 07 July 2017 19:39 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 589
Registered: September 2012
Location: Belgium
Senior Member

It's called OclUndefined in ATL, and you can test for it as follows:
not t.name.oclIsUndefined()


Cheers,
Dennis
Re: null is undefined [message #1767665 is a reply to message #1767634] Sat, 08 July 2017 20:02 Go to previous message
Banafsheh Azizi is currently offline Banafsheh AziziFriend
Messages: 328
Registered: July 2016
Senior Member
Thank you very much.

Member of MDSE Research Group
http://mdse.ui.ac.ir
Previous Topic:Obtaining ATL program from ATL model
Next Topic:[EMFTVM] Compile ATL to EMFTVM transformation and running the transformation in a Java program
Goto Forum:
  


Current Time: Fri Mar 29 05:07:46 GMT 2024

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

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

Back to the top