The Templates tab in the UML panel of the Options window enables you to customize domain template settings that are used during the UML Modeling's code generation process.
Domain templates, which you define, is the mapping of an element type and a stereotype to a particular code generation template file. The three domain templates currently available are Basic Class, Basic Interface, and Basic Enumeration, all of which are designed for plain old java objects (POJOs). The sole purpose of creating domain templates is to generate text from an existing UML model. The default output format is Java code, but it can be C++, JavaScript, XML, Ruby, etc. The output format is completely determined by the template files that are defined for a particular domain template.
Domain templates can be grouped into categories. You can create a category with as few or as many domain templates as you want. Categories of domain templates are displayed in tree form. Each domain template has a set of properties that can be customized.
To add a new domain template category:
To remove an existing domain template category:
To add a new domain template:
To remove a domain template:
To modify a domain template's properties:
Select the node for the domain template and modify any of the following properties:my-foo
, ejb-stateless
, or persistence.
Select a row and click Edit to modify a set of existing output parameters for a template file. Select a row and click Remove to delete a set of output parameters.