Mapping the UML2 Semantics of Associations to a Java']Java Code Generation Model

被引:0
作者
Gessenharter, Dominik [1 ]
机构
[1] Univ Ulm, Inst Software Engn & Compiler Construct, D-89069 Ulm, Germany
来源
MODEL DRIVEN ENGINEERING LANGUAGES AND SYSTEMS, PROCEEDINGS | 2008年 / 5301卷
关键词
UML; Associations; Code Generation; !text type='Java']Java[!/text;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
It is state of the art to provide UML modeling by means of class diagrams and code generation from there. But whereas drawing diagrams is most often well supported, code generation is limited in scope Association classes, multiplicities, aggregation and composition are not correctly or not all processed by most code generators. One reason may be that the UML semantics is not formally defined in the UML specification. As a result of that, associations are usually transformed into code by using properties of the same type as the associated classes into code by using properties of the same type as the associated classes or corresponding typed sets. This approach must fail although the UML2 Superstructure Specification considers association ends owned by a class to be equal to a property of the owning class. In this paper, we describe why associations should be implemented as classes when generating code from class diagrams.
引用
收藏
页码:813 / 827
页数:15
相关论文
共 27 条
[1]   Implementing associations: UML 2.0 to Java']Java 5 [J].
Akehurst, D. ;
Howells, G. ;
McDonald-Maier, K. .
SOFTWARE AND SYSTEMS MODELING, 2007, 6 (01) :3-35
[2]  
*ALT INC, 2008, ALTOVA UM 2008 ENT E
[3]  
[Anonymous], 2005, FUJABA ASS SPECIFICA
[4]  
[Anonymous], 2005, ECLIPSE MODELING FRA
[5]  
[Anonymous], 2003, J OBJECT TECHNOL
[6]  
*BORL SOFTW CORP, 2008, BORL TOG 2007 SERV P
[7]  
*CHANGEVLSION INC, 2008, JUD PROF 5 2 1 MOD V
[8]  
CRANE ML, 2006, CLASS DIAGRAMMS ABST
[9]  
Diskin Z, 2006, LECT NOTES COMPUT SC, V4199, P230
[10]  
Fujaba Development Group, 2007, FUJ TOOL SUIT 4 3 2