Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: tone on September 10, 2010, 12:27:17 pm

Title: How can I add decorators to a class?
Post by: tone 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
    }
Title: Re: How can I add decorators to a class?
Post by: Geert Bellekens 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