Hi Thomas,
I have a class (called "Class 1") in my model which is stereotyped from a class (called "Element"). The stereotyped class Element comes from a profile which I have created and imported into my new modelling project.
Im my modelling project I dragged this stereotyped class (which has 2 tagged values 'height' and 'width') from the tool box onto my diagram. To this stereotyped class (called "Class 1" on my diagram) I have added one attribute called "testParam" - this shows up fine in the code).
What I want to generate, apart from any normal attributes and operations assigned to this class is the tagged values which come from the stereotyped class.
I want to export these tagged values to Java as if they were "normal" attributes of the class
In the Attribute Declaration macro I added this:
<-- tag value start -->
%classTag:"height"%
<-- tag value end -->
which gives me the following output:
<-- tag value start -->100<-- tag value end -->
Upto now perfect

but what I want to achieve is akin to this:
private int height = 100;
private int width = 50;
So the questions is:
How can I reference all of my tagged values without using their specific names "width" & "height" and get them treated as if they were just normal attributes
I hope thats a bit clearer. If not please dont hesitate to ask for more details.
Thanks
Terry