Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » how to access a tagged value of a stereotype??
how to access a tagged value of a stereotype?? [message #542468] Thu, 24 June 2010 23:54 Go to next message
wafaa is currently offline wafaa
Messages: 163
Registered: January 2010
Location: Egypt
Senior Member
hi all

can some one tell me how to access the tagged value of a stereotype;
surely it will not be treated as an attribute of the element which the stereotype is applied on,

so if i have a stereotype called x and it has tagged value called IsB and it is of type Boolean how to check its value in an ATL program
Re: how to access a tagged value of a stereotype?? [message #542859 is a reply to message #542468] Sat, 26 June 2010 20:32 Go to previous messageGo to next message
wafaa is currently offline wafaa
Messages: 163
Registered: January 2010
Location: Egypt
Senior Member




hi again

please I have made many trials but none works

actually the method getValue returns EjavaObject which I can not
retrieve it either by b or c
can some one participate, :D

aggregation <- let b : OclAny = opc.getValue(thisModule.getStereotype('ObjectProperty'),'IsC omposition') in
if b = true then
#composite
else
let c : OclAny = opc.getValue(thisModule.getStereotype('ObjectProperty'),'IsC omposition') in


--opc.getValue(thisModule.getStereotype('ObjectProperty'),'I sAggregation') then
#shared
else
#none
endif
endif


> hi all
>
> can some one tell me how to access the tagged value of a stereotype;
> surely it will not be treated as an attribute of the element which the
> stereotype is applied on,
> so if i have a stereotype called x and it has tagged value called IsB
> and it is of type Boolean how to check its value in an ATL program

[Updated on: Sat, 26 June 2010 22:08]

Report message to a moderator

Re: how to access a tagged value of a stereotype?? [message #542860 is a reply to message #542468] Sat, 26 June 2010 20:36 Go to previous messageGo to next message
wafaa is currently offline wafaa
Messages: 163
Registered: January 2010
Location: Egypt
Senior Member
On 14/07/1431 02:54 ص, wafaa wrote:
> hi all
>
> can some one tell me how to access the tagged value of a stereotype;
> surely it will not be treated as an attribute of the element which the
> stereotype is applied on,
> so if i have a stereotype called x and it has tagged value called IsB
> and it is of type Boolean how to check its value in an ATL program
Re: how to access a tagged value of a stereotype?? [message #542869 is a reply to message #542860] Sat, 26 June 2010 21:53 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4046
Registered: July 2009
Senior Member
Sending the same message again and again is not likely to improve your
chances of getting a helpful response.

Regards

Ed Willink

On 26/06/2010 21:36, wafaa wrote:
> On 14/07/1431 02:54 ص, wafaa wrote:
>> hi all
>>
>> can some one tell me how to access the tagged value of a stereotype;
>> surely it will not be treated as an attribute of the element which the
>> stereotype is applied on,
>> so if i have a stereotype called x and it has tagged value called IsB
>> and it is of type Boolean how to check its value in an ATL program
>
Re: how to access a tagged value of a stereotype?? [message #542870 is a reply to message #542869] Sat, 26 June 2010 22:05 Go to previous message
wafaa is currently offline wafaa
Messages: 163
Registered: January 2010
Location: Egypt
Senior Member
Of course "it is not again and again"

It is not my habbit, you may for example think that it was an error,
I am currently using a Mail client due to some format and the ability to attach files and it was sent by error:


by the way you can delete the repeated ones as I could not do it.

[Updated on: Sat, 26 June 2010 22:10]

Report message to a moderator

Previous Topic:how to deal with nestedPackage of a package
Next Topic:[QVTo] global variables for transformation
Goto Forum:
  


Current Time: Tue Sep 23 14:28:34 GMT 2014

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

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