`
joerong666
  • 浏览: 417940 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

Code generation based on UML class diagrams

阅读更多

I would like to share my experience in using a tool to generate java source code from my UML diagram.

I am using a tool call AndroMDA which is a free opensource tool to assist me in generating different source files including java source code, struts configuration file, ejb deployment descriptors and etc.

I am using the Poseidon UML as my case tool to design the class diagrams for different layers of my portal. I am designing the business application layer using EJB (CMP for entity bean), the user services layer using J2EE patterns and the web application layer using struts.

Based on all my class diagrams, the AndroMDA will generate:
- bean class, interface classes and the deployment descriptor for all my EJB. For CMP entitybean, I don't need to do any coding in the java files, just need to add the EBQL to the descriptor for some of my entitybean. For the session bean, I will only need to code the bean class.

- J2EE pattern classes such as Business Delegate, Session Facade from my user services layer class diagrams.

- struts action classes, struts forms, value object, struts configuration for my web application layer.

Besides providing default code generation templates, the AndroMDA also allowed creation of new code generation template to suit to the user's need, where the template will organize as cartridge and add to the AndroMDA template directory. I actually designed the template that the AndroMDA used to generate the J2EE patterns for the Business Delegate and Session Facade.

I am now in the progress of developing my portal, based on the codes framework and skeleton generate from AndroMDA.

For more details, please visit the AndroMDA site, http://www.andromda.org/
I am using the Poseidon UML Community Edition which is free, download from http://www.gentleware.com/

 

转自:http://www.cjsdn.net/post/view?age=0&bid=16&ppg=1&sty=3&id=47479&tpg=1

分享到:
评论

相关推荐

    UML 2.0 Diagrams (Visio 2007).vst

    UML 2.0 Diagrams (Visio 2007).vst

    Visualization and Modeling Feature Pack

    Generate code from UML class diagrams. Create UML class diagrams from code. Import UML class, sequence, and use case elements from XMI 2.1 files. Create and view links from work items to model ...

    argouml-diagrams-sequence.jar.zip

    首先,"argouml-diagrams-sequence.jar.zip"是一个压缩文件,其中包含的主要元素是"argouml-diagrams-sequence.jar"和"mof-license.txt"。前者是ArgoUML序列图插件的可执行文件,用于扩展ArgoUML的功能,让用户能够...

    argouml-diagrams-state.jar.zip

    ArgoUML是用Java语言编写的一款轻量级UML建模工具,它支持多种UML图的创建,包括类图、用例图、序列图等,而"argouml-diagrams-state.jar"文件正是ArgoUML用于绘制状态图的组件。状态图是UML中的一个重要部分,它...

    Introduction to UML 2 Class Diagrams

    【UML 2 类图简介】 UML(统一建模语言)是软件开发过程中广泛使用的标准化建模语言,它提供了一种图形化的方式来表达系统设计的各个层面。类图是UML中的一个重要概念,用于描绘对象世界的静态结构,即类、接口、...

    argouml-diagrams-activity.jar.zip

    ArgoUML,全称为ArgoUML Diagrams Activity,是一款开源的统一建模语言(UML)工具,主要用于软件设计过程中的建模和分析。它支持多种UML图表,其中包括活动图,这是描述系统或程序流程的重要方式。在本篇文章中,...

    en_visual_studio_2010_visualization_modeling_feature_pack_x86_x64_535571

    Generate code from UML class diagrams. Create UML class diagrams from code. Import UML class, sequence, and use case elements from XMI 2.1 files. Create and view links from work items to model ...

    java源码转uml-UML-parser---converts-Java-code-to-UML-diagrams:Java解析器,可将Ja

    在这个场景中,"UML-parser---converts-Java-code-to-UML-diagrams" 是一个Java解析器,专门用于将Java源代码转换成UML类图或其他类型的UML图表。 这个项目很可能是一个开源系统,这意味着它的源代码是公开的,允许...

    Struts Controller UML diagrams

    标题:Struts Controller UML diagrams 描述:Struts Controller UML diagrams 标签:Struts Controller UML diagrams 本文将深入探讨Struts框架的核心组件之一——控制器(Controller),并通过统一建模语言...

    Using UML Activity Diagrams for the Process View

    ### 使用UML活动图表示流程视图的关键知识点 #### 一、引言 在软件开发过程中,有效地描述和建模系统行为是至关重要的。本文档由资深软件架构师Ben Lieberman撰写,旨在介绍如何利用统一建模语言(Unified ...

    OWL 2 validation of UML class diagrams-开源

    所提供的工具,称为ONTOOL,允许基于选定的OWL 域本体创建UML 类图,并验证这些图是否与本体兼容。 ONTOOL 还允许规范化任何在 OWL 中表达的语法正确和一致的本体。 ONTOOL 已经通过多个测试用例进行测试,并通过...

    UML2ClassDiagrams

    火龙果软件工程技术中心 UML2classdiagramsarethemainstayofobject-orientedanalysisanddesign.UML2classdiagramsshowtheclassesofthesystem,theirinterrelationships(includinginheritance,aggregation,and...

    Overview NClass is a free tool to easily create UML class diagra

    NClass is a free tool to easily create UML class diagrams with full C# and Java language support. The user interface is designed to be simple and user-friendly for easy and fast development. ...

    CityGML_1_0_0_UML_diagrams.pdf

    ### CityGML 1.0.0 UML Diagrams概览与知识点解析 #### 基础介绍 CityGML(City and Terrain Modeling Language)是一种开放标准的数据模型,旨在为三维城市模型提供一种统一的表现形式。它由Open Geospatial ...

    Microsoft VS 2010 Visualization and Modeling Feature Pack

    Generate code from UML class diagrams. Create UML class diagrams from code. Import UML class, sequence, and use case elements from XMI 2.1 files. Create and view links from work items to model ...

    UML Use Case Diagrams

    ### UML用例图详解 #### 一、引言 在软件工程领域,尤其是面向对象设计与分析过程中,统一建模语言(Unified Modeling Language, UML)作为一种图形化的表示方法,为软件系统的可视化、文档化提供了强大的支持。...

    uml2.4.1上层标准

    UML标准所涵盖的内容极其丰富,它定义了众多的图表类型,如用例图(Use Case Diagrams)、类图(Class Diagrams)、对象图(Object Diagrams)、活动图(Activity Diagrams)、状态图(State Diagrams)、序列图...

    UML for the C programming language

    Functional C diagrams are specific types of UML diagrams designed to represent the functional aspects of C programs. These diagrams include: - **Sequence Diagrams**: Used to depict the interactions ...

Global site tag (gtag.js) - Google Analytics