Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Get stereotype Generalization - Tag Value
Get stereotype Generalization - Tag Value [message #1444142] Mon, 13 October 2014 17:51 Go to next message
Pedro Grifin is currently offline Pedro GrifinFriend
Messages: 2
Registered: October 2014
Junior Member
hi:

I'm doing an ATL transformation, but I have a problem getting a stereotypical generalization.

I enclose a diagram. My idea is to get the multiplicity stereotype and its value N. Then, when you make the association, such as from A to B, to put this value.

FOr example, the sentence:

claseDestino.createOwnedAttribute (claseConocedoraOrigen.name, modeloDestino.member->
select (m | m.oclIsTypeOf (MM1 Class) and m.name = claseConocedoraOrigen.name!) .first (), 1, 1);

The values ​​1 and 1 are the maximum and minimum, but now is fixed to 1 What I want to get the value of that stereotype multiplicity N, to make

claseDestino.createOwnedAttribute (claseConocedoraOrigen.name, modeloDestino.member->
select (m | m.oclIsTypeOf (MM1 Class) and m.name = claseConocedoraOrigen.name!) .first (), 1, Value_N);

thank you very much

a greeting

[Updated on: Wed, 15 October 2014 14:50]

Report message to a moderator

Re: Get stereotype Generalization - Tag Value [message #1444794 is a reply to message #1444142] Tue, 14 October 2014 15:03 Go to previous message
Pedro Grifin is currently offline Pedro GrifinFriend
Messages: 2
Registered: October 2014
Junior Member
hi:

The issue is closed. The solution is to getAppliedStereotypes ()

Thank you

[Updated on: Wed, 15 October 2014 14:51]

Report message to a moderator

Previous Topic:How to copy elements from a root element (aggregation)
Next Topic:ideas for model transformation project for beginners
Goto Forum:
  


Current Time: Thu Apr 25 04:02:18 GMT 2024

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

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

Back to the top