Hi,
I want to modify the java cartridge to use it for ordinary java code generation. What did I do? - In magicdraw I made a new stereotype <<JavaClass>> - In the java cartridge I made a new template JavaClass.vsl It works just fine but I'm having the following problems: - Besides a getter and setter, I want to generate a canHaveAs method that's called in the setter method to check if the value you want to set is valid. So I added an attribute taggedvalue in magicdraw: @andromda.condition that holds the condition (eg. "> 0"). This also works fine. But in my template file I can't do canHaveAsName (like with getterName, setterName). How can I add such a method in the metafacades? The provided uml model for the metafacades is read-only, so I can't just add a method in there. - The comment I fill in in magicdraw comes with <p></p> tags in my code. Can I remove those tags somewhere somehow? - How can I tell androMDA to add my stereotypes and tagged values default to the profile of new projects? - I can check whether an attribute is of a primitive type or not (that works). But I want to go a step further. I want to check if an attribute is mutable or not (meaning: mutable (eg. java Date): when you return a mutable object, it returns a reference to the object <--> immutable (eg. java String): when you return a immutable object, it's automatically copied into a new object). Can I add this kind of information in the data types provided with andromda? I can't find where the "primitive" attribute is defined. That's about all for now ;-) I Hope someone can help me :-) _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2225#2225 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list! ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user