You can use your own root template. E.g. copy the one out of the
Spring-Cartridge and add something like these:


> /**
> * The entry point for the generation
> */
> «DEFINE Root FOR uml::Model»
>     «EXPAND Root FOREACH (List[uml::Package])ownedElement»
> «ENDDEFINE»
>
>  /**
> * Creates all packages
> */
> «DEFINE Root FOR uml::Package»
>     «EXPAND Root FOREACH ownedType.typeSelect(uml::Interface)»
>     «EXPAND Root FOREACH ownedType.typeSelect(JavaBasic::Entity)»
>     «EXPAND Root FOREACH ownedType.typeSelect
> (uml::Class).select(e|e.getAppliedStereotypes().isEmpty)»
>     «EXPAND Root FOREACH ownedType.typeSelect(uml::Enumeration)»
>     «EXPAND Root FOREACH nestedPackage»
>     «EXPAND Root FOREACH ownedType.typeSelect(JavaBasic::Exception)»
> «ENDDEFINE»
>
> /**
> * Creates all interfaces
> */
> «DEFINE Root FOR uml::Interface»
>     «EXPAND
> org::fornax::cartridges::uml2::javabasic::templates::Interface::interface»
> «ENDDEFINE»
>
> /**
> * Creates all classes
> */
> «DEFINE Root FOR uml::Class»
>     «EXPAND
> org::fornax::cartridges::uml2::javabasic::templates::Class::class»
> «ENDDEFINE»
>
> /**
> * Create the interface, the abstract and the basic implementation
> */
> «DEFINE Root FOR JavaBasic::Entity»
>     «EXPAND
> org::fornax::cartridges::uml2::javabasic::templates::Entity::interface»
>     «EXPAND
> org::fornax::cartridges::uml2::javabasic::templates::Entity::abstractClass»
>     «EXPAND
> org::fornax::cartridges::uml2::javabasic::templates::Entity::basicClass»
> «ENDDEFINE»
>
> /**
> * Create the exception classes
> */
> «DEFINE Root FOR JavaBasic::Exception»
>     «EXPAND
> org::fornax::cartridges::uml2::javabasic::templates::Exception::exception(
> this.isUnchecked)»
> «ENDDEFINE»
>
> /**
> * Create the enumerations
> */
> «DEFINE Root FOR uml::Enumeration»
>     «EXPAND
> org::fornax::cartridges::uml2::javabasic::templates::Enum::enum»
> «ENDDEFINE»
>
>
> /**
> * Dummy DEFINE for all elements with no generation purposes
> */
> «DEFINE Root FOR Object»
> «ENDDEFINE»



Thorsten



-- 
Thorsten Kamann
Software-Architect, Consultant, Coaching
Germany, NRW

Business:
itemis products and solutions GmbH & Co. KG | Heinrichstraße 51 | 44536
Lünen

Rechtlicher Hinweis:
Amtsgericht Dortmund, HRA 15841
P.h.G.: Komplementär: itemis management GmbH | Amtsgericht Dortmund HRB
18939 | Geschäftsführer Jürgen Rödl

Personal:
[EMAIL PROTECTED]
http://www.thorsten-kamann.de/
callto://thorque

Fornax-Platform - Platform for developing MDSD-related Tools and components
http://www.fornax-platform.org/
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to