Hi! I checked the SQL-Module a bit last night and wanted it to create code for a database scheme, modeled with Scott Ambler's database profile (Thomas created an early version for Argo). Those classes are mainly tagged with stereotypes, like 'Table', 'View' etc. so you can recognize those classes in a classdiagram, even if other classes (i.e. for Java or PHP code) are in the diagram (that's nice, so you can model a db table and the code, that's working on it in the same diagram). Problem: when you generate code, you have to select the classes for the CG manually. I thought, it would be nice, if a module would recognize the classes, it can generate code for, by itself. So I propose a minor extension to the CodeGenerator interface. Just a method, that checks, whether a class 'suits' this module and returns true or false. So in our case, the CG dialog could loop all classes, pass them to all the modules, and the SQL module would check, if the class has a stereotype, that fits and returns true for those classes. Other modules could check (as an example), if there's already some code in the method bodies that matches their language. The CG dialogue could use this information then to preselect the classes for each module, so the user could still override the settings. I think, that it would be a useful extension, but it would break all module with CG, I guess...
So, what do you think? Ciao, Andreas -- Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a ------------------------------------------------------ http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=1442974 To unsubscribe from this discussion, e-mail: [[email protected]]. To be allowed to post to the list contact the mailing list moderator, email: [[email protected]]
