Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MoDisco » [QVTO] Adding a new StorableUnit to a KDM model with its type(KDM model transformation)
[QVTO] Adding a new StorableUnit to a KDM model with its type [message #1744144] Thu, 22 September 2016 17:06 Go to next message
Daniel San Martín is currently offline Daniel San MartínFriend
Messages: 45
Registered: October 2012
Member
Hello,

I want to add a new StorableUnit to a class in a KDM model with QVTo. I can do that but the problem is with its type.


	var dt:Datatype;
       dt -> including(StringType);
 		
 	var attr := object StorableUnit{
 						name :="passport";
 						kind := StorableKind::local;
 						type := dt;
 					};



I tried several types of assignment but it is not working.

Thanks in advance,

Daniel.
Re: [QVTO] Adding a new StorableUnit to a KDM model with its type [message #1744163 is a reply to message #1744144] Fri, 23 September 2016 04:23 Go to previous message
Daniel San Martín is currently offline Daniel San MartínFriend
Messages: 45
Registered: October 2012
Member
It was simple, thanks:

var dt := object StringType{};
 		-- inline constructor
 		var attr := object StorableUnit{
 						name :="passport";
 						kind := StorableKind::local;
 						type:=dt;
 					};
Previous Topic:news.eclipse.org is shutting down.
Next Topic:How to convert Modisco Java model to Ecore Genmodel
Goto Forum:
  


Current Time: Fri Apr 26 03:22:42 GMT 2024

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

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

Back to the top