Abstract
The value of automated code generation is increasingly recognized, and the application model becomes the central artefact in the software development process. Model-driven development requires a rapid and flexible code generation mechanism. This paper discusses code generation based on templates that actively access UML model information to fill an implementation skeleton. Different templates result in different generated code, providing a highly flexible generation mechanism. Along with a discussion on the potential of such a code generation, an existing framework for code generation with templates is presented.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Rodney Bell. Code Generation from Object Models. http://www.embedded.com/98/9803fe3.htm.
Marko Boger. dejay.org—Bringing Distribution and Concurrency Together. http://www.dejay.org.
Apache Software Foundation. Velocity. http://jakarta.apache.org/velocity/.
Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides. Design Patterns—Elements of Reusable Object-Oriented Software. Addison-Wesley Publishing Company, Reading, Massachusetts, 1995.
Michael Kay. XSLT Programmer’s Reference. Wrox Press, 2000.
Stephen J. Mellor. Automatic Code Generation from UML. C++ Report, June, 1999.
Stephen J. Mellor and Neil Lang. Developing Shlaer-Mellor Models Using UML. Technical report, Project Technology, Inc., San Leandro, California, 1997.
W3C. XSL Transformations (XSLT) Version 2.0. http://www.w3.org/TR/xslt20/.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2002 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Sturm, T., von Voss, J., Boger, M. (2002). Generating Code from UML with Velocity Templates. In: Jézéquel, JM., Hussmann, H., Cook, S. (eds) ≪UML≫ 2002 — The Unified Modeling Language. UML 2002. Lecture Notes in Computer Science, vol 2460. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-45800-X_13
Download citation
DOI: https://doi.org/10.1007/3-540-45800-X_13
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-44254-7
Online ISBN: 978-3-540-45800-5
eBook Packages: Springer Book Archive