Book a Demo

Author Topic: How can I add decorators to a class?  (Read 2354 times)

tone

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
How can I add decorators to a class?
« on: September 10, 2010, 12:27:17 pm »
Maybe this is specific to .net..  I need to decorate certain types with [serializable] and am curious if it is possible to express this in my eap model so that it can be generated instead of adding post code generation.

for example:
Code: [Select]
   [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:hl7-org:v3")]
    public class blah
    {
        blah blah
    }
« Last Edit: September 10, 2010, 12:30:16 pm by tonesoutherland »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How can I add decorators to a class?
« Reply #1 on: September 10, 2010, 02:52:56 pm »
If this can be done it will probably used tagged values.
Try reverse engineering, and inspect the tagged values.

Geert