Hi,
I am trying to customize the java cartridge to do some auto java code generation. 1) In MagicDraw, I have defined my new stereotype, "TestStereoType", and also have a class diagram ABC which is of "TestStereoType". I added the following in andromda-cartridge.xml in java cartridge source code. (I am using ValueObject.vsl here just for generating something) <template path="templates/java/ValueObject.vsl" outputPattern="{0}/{1}.java" outlet="interfaces" overwrite="true" required="false"> <modelElements variable="class"> <modelElement stereotype="TestStereoType"/> </modelElements> </template> Recompiled java cartridge, and rerun maven in my test app, hoping that it will generate some code based on ValueObject.vsl for my ABC class diagram. However, I don't see it is generating the code. Seems that I have to use one of already defined stereotype eg ValueObject. Am I going in the right direction? Or am I doing something totally wrong? 2) I also tried to have an interface defined in UML, and try to generate java code from that interface. But I couldn't figure out how to do it at all. Anyone could help? Jie _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1179#1179 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list! ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user