Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [EOL/ETL] Need to determine a type of an attribute
[EOL/ETL] Need to determine a type of an attribute [message #1720770] Wed, 20 January 2016 20:39 Go to next message
Alexander Fülleborn is currently offline Alexander FüllebornFriend
Messages: 132
Registered: April 2013
Senior Member
Hello Folks,

I Need to determine the type of a property in a class. The type is a class also contained within my model.

The following does not work:

var p = Model!Property.all.selectOne(p|p.name = "Test");
var t = p.getEAttributeType();


Does a method exist that reads this Kind of Information?

Thanks a lot in advance and Kind regards, Alexander
Re: [EOL/ETL] Need to determine a type of an attribute [message #1720775 is a reply to message #1720770] Wed, 20 January 2016 22:07 Go to previous messageGo to next message
Alireza Rouhi is currently offline Alireza RouhiFriend
Messages: 148
Registered: December 2015
Senior Member
Dear Alexander,

Hi,

I think the following code can solve your problem:

var p = Property.all.selectOne(p|p.name = "Test");
var t = p.type;


Of course, if you mean the name of the property p here, you can use the name property of type as follows:

var p = Property.all.selectOne(p|p.name = "Test");
var t = p.type.name;


Kind regards,
Alireza
Re: [EOL/ETL] Need to determine a type of an attribute [message #1720798 is a reply to message #1720775] Thu, 21 January 2016 06:53 Go to previous message
Alexander Fülleborn is currently offline Alexander FüllebornFriend
Messages: 132
Registered: April 2013
Senior Member
Hi Alireza,

Thanks a lot for for your reply. That worked fine.

Thanks again for your appreciated support.

Kind regards, Alexander

Previous Topic:[EUGENIA] - Duplication Item in Connection Palette
Next Topic:EVL: Checking the existence of a relationship between two classifier
Goto Forum:
  


Current Time: Fri Apr 26 02:59:40 GMT 2024

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

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

Back to the top