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 >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/generic >way to implement this let me know and I'll see if I >can add something like this. > >Chad > >--- François_Eric <[EMAIL PROTECTED]> wrote: > >> 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 >> compositions with a particular stereotype. I would >> like to avoid to do >> this since I am already specifying my associations >> as compositions and >> therefore would be redundant in the model. >> >> Hope I'm being clear, >> >> Thanks a lot, >> >> François >> >> >> >> >> >------------------------------------------------------- >> This SF.Net email is sponsored by OSTG. Have you >> noticed the changes on >> Linux.com, ITManagersJournal and NewsForge in the >> past few weeks? Now, >> one more big change to announce. We are now OSTG- >> Open Source Technology >> Group. Come see the changes on the new OSTG site. >> www.ostg.com >> _______________________________________________ >> Andromda-user mailing list >> [EMAIL PROTECTED] >> >https://lists.sourceforge.net/lists/listinfo/andromda-user >> > > > >------------------------------------------------------- >This SF.Net email is sponsored by OSTG. Have you noticed the changes on >Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, >one more big change to announce. We are now OSTG- Open Source Technology >Group. Come see the changes on the new OSTG site. www.ostg.com >_______________________________________________ >Andromda-user mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/andromda-user --------------------------------------------------------------------------- Walter Itamar Mourão - Diretor de Tecnologia e Projetos - Arcadian S/A www.arcadian.com.br
CompositeIdClass.vsl
Description: Binary data