Skip to main content

Generating Code from UML with Velocity Templates

  • Conference paper
  • First Online:
≪UML≫ 2002 — The Unified Modeling Language (UML 2002)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 2460))

Included in the following conference series:

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Rodney Bell. Code Generation from Object Models. http://www.embedded.com/98/9803fe3.htm.

  2. Marko Boger. dejay.org—Bringing Distribution and Concurrency Together. http://www.dejay.org.

  3. Apache Software Foundation. Velocity. http://jakarta.apache.org/velocity/.

  4. Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides. Design Patterns—Elements of Reusable Object-Oriented Software. Addison-Wesley Publishing Company, Reading, Massachusetts, 1995.

    Google Scholar 

  5. Michael Kay. XSLT Programmer’s Reference. Wrox Press, 2000.

    Google Scholar 

  6. Stephen J. Mellor. Automatic Code Generation from UML. C++ Report, June, 1999.

    Google Scholar 

  7. Stephen J. Mellor and Neil Lang. Developing Shlaer-Mellor Models Using UML. Technical report, Project Technology, Inc., San Leandro, California, 1997.

    Google Scholar 

  8. W3C. XSL Transformations (XSLT) Version 2.0. http://www.w3.org/TR/xslt20/.

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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

Publish with us

Policies and ethics