Re: [Andromda-user] Template to generate on a composition

2004-08-04 Thread Walter Mourão
Well, it is possible check the conditions inside the template. If your template generates an empty output, the file isn't created. I attached an example. Walter Chad Brandon <[EMAIL PROTECTED]> grava: >Unfortunately this isn't currently possible, >stereotypes are the only things that drive code >

Re: [Andromda-user] Template to generate on a composition

2004-08-04 Thread Chad Brandon
You're welcome. Yes I think it could be done, I'll have to think about the best way to do it (and still keep it metamodel independant). I think it would be great to have this ability and I like you're example below. Thanks Francois, Chad --- François_Eric <[EMAIL PROTECTED]> wrote: > Thanks

Re: [Andromda-user] Template to generate on a composition

2004-08-04 Thread François Eric
Thanks for your quick answer Chad, For now we'll use the stereotype approach but it would indeed be a good idea to be able to specify modelelements in the form of: Does this make sense? Could it be done? Thanks, François Chad Brandon wrote:

Re: [Andromda-user] Template to generate on a composition

2004-08-04 Thread Chad Brandon
Unfortunately this isn't currently possible, stereotypes are the only things that drive code generation. It would be great to provide other means of providing code generation (like on the type of model element, etc), like what you're asking for below. If anyone has any good ideas on a good/generi

[Andromda-user] Template to generate on a composition

2004-08-04 Thread François Eric
Hello all, I want to generate a file for every composition in my model (a particular type of association). Is it possible to do so with the andromda generators by specifying a certain modelelement property I am not aware of? Otherwise my workaround is to tag the associations which are compos