Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: juan blanco on November 19, 2010, 12:23:51 am
-
Hi,
I am trying to create an script, which will convert attributes with Stereotype as Property, as the backing field of a Property, creating also the Property method.
(Ideally I would like to have Properties with no backing fields in C# but whilst I am capable to forward engineer in this format modifying the template. Reverse engineering converts them into methods :o )
My problem is that I don't know what object or attribute is used to set an attribute as a "Property", link it to the method and what I believe set the sterotypes for getters and setters.
Any pointers will be appreciated.
Thanks!!
Juan
-
Hi,
I am not sure, that I have get Your point, but I guess You mean, that You are trying to make a model transformation template, which will make a C# class model from some class model.
In that case I would change Attribute template to ommit creation of Attribure {} section in case the transformed attribute have the special stereotype. And I will generate the required Operations instead.