Summary

Chapter 4 - Generating Code From the Visio Model
byAndrew Filevet al.?
Wrox Press ©2002
Team FLY

In this chapter, we have looked at generating code from a UML model in Visio. We began with an overview of code generation, and how it offers the developer skeleton code from the UML model, and how the use of code templates offers fine-grained control over this implementation.

We created a simple Employee class, and as we added features to the class we had a look at the code that would be generated, and gained a good understanding of the UML to language mappings that Visio uses to generate your code.

We then went on to configure code-generation options and look at code templates. We saw how to create new and custom templates, some of the drawbacks of code templates, and looked at the possibility of using code templates to simplify the documentation process for our code, including the use of XML comments and comment web pages.

Code generation is a simple process and the material in this chapter can help you to simplify your work with Visio and use its simple, but powerful features.

In the next chapter we'll look at the reverse of this process - taking existing code and producing a UML model from that structure.

Team FLY


Professional UML with Visual Studio. NET. Unmasking Visio for Enterprise Architects
Professional UML with Visual Studio. NET. Unmasking Visio for Enterprise Architects
ISBN: 1440490856
EAN: N/A
Year: 2001
Pages: 85

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net