Hi Fabrizio, you should associate the three special stereotypes with special templates. You do this in the cartridge descriptor (see the descriptor of an existing cartridge to see how to do that). The only thing you have to remember is: Inside your template script, the reference "$class" will not point to a class but to an attribute!
Cheers... Matthias > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Barbero Fabrizio > Sent: Tuesday, October 14, 2003 8:11 PM > To: [EMAIL PROTECTED] > Subject: [Andromda-user] Generating more than 1 classes base > on stereotypes of attribute > > > I try to use andromda for custom generation. > Is there a way to generate more than one class based on the > stereotype assigned to the classattributes ? For instance > suppose that we have a class in the model with the following > attributes + stereotypes > > class: XXX > attributes: > <<stereotypeOne>> name: String > <<stereotypeTwo>> age: int > <<stereotypeTree>> quantity: float > > How can I design a cartriage that, giving the class XXX, > generates 3 java classes ( in 3 different files ) depending > on the stereotypes of the attributes ( for instance 3 files > NameOne.java , class AgeTwo.java, class QuantityTree.java ? > > Thanx > Fabrizio > > > > --------------------------------------------- > Fabrizio Barbero - Ds Data Systems > e-mail: <[EMAIL PROTECTED]> > website: <http://www.dsdata.it/> > > Via Ugozzolo 121/A 43100 PARMA > Tel. +39 - 0521-2781, Fax +39 - 0521-278311 > Corso Svizzera, 185 bis 10149 - TORINO > Tel. +39 - 011.7410128, Fax +39 - 011.7410795 > --------------------------------------------- > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > SourceForge.net hosts over 70,000 Open Source Projects. See > the people who have HELPED US provide better services: Click > here: http://sourceforge.net/supporters.php > _______________________________________________ > Andromda-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/andromda-user > > ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user