Chapter 14. Generation

Table of Contents

1. Code Generation
1.1. Generation Settings
1.2. Reverse Engineering
1.3. Roundtrip Engineering
1.3.1. Using Roundtrip
1.3.2. Conflict Resolution
1.3.3. Accessor Methods
1.4. Fine Tuning Code Generation
2. Advanced Code Generation
2.1. Velocity Template Language
2.1.1. References
2.1.2. Directives
2.1.4. Examples
2.2. Working with the Standard Templates
2.3. Code Generation API
3. Documentation Generation
3.1. Generation Dialog
3.1.1. Project Tree
3.1.2. Chapter Tree
3.1.3. Books
3.1.4. Book Templates
3.1.5. Settings Tab
3.2. Included Diagrams
3.3. Supported Javadoc Tags

UML wouldn't be worth all the sophisticated work if all it came down to was pretty vector graphics. When analyzing and designing a software system, your final goal will be to generate well-implemented code.

Poseidon for UML provides a very powerful and flexible code generation framework, based on a template mechanism. It is currently used to generate a variety of code types including Java and HTML, but it is flexible enough to generate any kind of programming language, or other output, such as XML.