Thursday, April 19, 2007

Mapping UML Associations into Java Code

I came across this article “Mapping UML Associations into Java Code” while doing our home work on UML associations.

This paper is quite good. It identifies

· Subtleties in UML associations,

· Gives a good understanding of what associations are,

· There visibility in participating classes,

· Common patterns of implementing associations in code,

· Automatic code-generation for associations

I was thinking that we can use this paper as one of our term-papers for presentation.

Following are the details of the paper.

Mapping UML Associations into Java Code

Authors:

Gonzalo GĂ©nova, Carlos Ruiz del Castillo and Juan Llorens,

Computer Science Department, Carlos III University of Madrid, Spain

Abstract

Object-oriented programming languages do not contain syntax or semantics to express associations directly. Therefore, UML associations have to be implemented by an adequate combination of classes, attributes and methods. This paper presents some principles for the implementation of UML binary associations in Java, paying special attention to multiplicity, navigability and visibility. Our analysis has encountered some paradoxes in the specification of visibility for bidirectional associations. These principles have been used to write a series of code patterns that we use in combination with a tool that generates code for associations, which are read from a model stored in XMI format.

JOURNAL OF OBJECT TECHNOLOGY

Online at http://www.jot.fm. Published by ETH Zurich, Chair of Software Engineering ©JOT, 2003

Vol. 2, No. 5, September-October 2003