Configuring Domain Templates Options (UML Modeling)

See Also

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:

  1. Select the Categories node and click Add.
  2. Select the node for the new category and press F2 or triple-click the node to change the default name of the new category.

To remove an existing domain template category:

To add a new domain template:

  1. Select the node for the category in which to add the domain template and click Add.
  2. Select the node for the new domain template and press F2 or triple-click the node to change the default name of the new category.

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:
See Also
Generating Code
UML Categories in the Options Window
Using the Options Window

Legal Notices