|Re: how to add a custom property to a stereotype attribute? [message #787583 is a reply to message #787208]
||Tue, 31 January 2012 18:54
| Rafael Chaves
Registered: July 2009
I see, thanks for clarifying.|
So depending on the kind of field, you would like to have additional type-specific properties, Is that it?
Would this work?
1) have a 'field' stereotype (with any properties that apply to all fields, regardless of type)
2) have a substereotype for each type of field that requires additional information, declaring in each of those substereotypes any properties required (max_length for stringfield, lower/upper limit for numericfield etc)
3) apply the concrete stereotypes only, not the base one
But before you go down that route, I'd advise looking for a better way of customizing code/schema generation that didn't require setting properties for each class' attribute.
Better to have a general mapping (say, based on type), and only exceptionally (if at all) tweaking things on a class basis.
Powered by FUDForum
. Page generated in 0.02076 seconds