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 A is currently offline Banafsheh AFriend
Messages: 262
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)		
...
}

[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: 363
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 A is currently offline Banafsheh AFriend
Messages: 262
Registered: July 2016
Senior Member
Thank you very much.
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: Tue Jun 19 07:01:07 GMT 2018

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

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

Back to the top