Author Topic: Attribute set as Property  (Read 2497 times)

juan blanco

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Attribute set as Property
« 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

Ondrej Kolenaty

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Attribute set as Property
« Reply #1 on: November 23, 2010, 07:30:16 pm »
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.