Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Short DataType is not supported in ATL
Short DataType is not supported in ATL [message #1716430] Thu, 03 December 2015 16:51 Go to next message
Ahmed AHMED is currently offline Ahmed AHMEDFriend
Messages: 10
Registered: December 2015
Junior Member
My target metamodel has an attribute of Short DataType but unfortunately ATL has a limited list of supported datatype and I get the following error:

'class java.lang.Integer' must be of type 'class java.lang.Short'

How can i solve this without modifying my target metamodel.


Thanks in advance.

Re: Short DataType is not supported in ATL [message #1716736 is a reply to message #1716430] Mon, 07 December 2015 21:13 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 589
Registered: September 2012
Location: Belgium
Senior Member

It can be done with EMFTVM by calling ".shortValue()" on the Integer value you want to assign to a Short property. See the attached Eclipse project for an example.

Cheers,
Dennis
Re: Short DataType is not supported in ATL [message #1727929 is a reply to message #1716736] Tue, 29 March 2016 14:12 Go to previous message
Ahmed AHMED is currently offline Ahmed AHMEDFriend
Messages: 10
Registered: December 2015
Junior Member
Thanks Dennis
Previous Topic:using henshin model in EMFTVM
Next Topic:XML2XMI Serialization with nillable attributes
Goto Forum:
  


Current Time: Fri Mar 29 12:47:53 GMT 2024

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

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

Back to the top