Code Engineering Using UML Models - Enterprise .Enterprise Architect - Code Engineering Using UML

  • View
    214

  • Download
    0

Embed Size (px)

Text of Code Engineering Using UML Models - Enterprise .Enterprise Architect - Code Engineering Using UML

  • Copyright 1998-2010 Sparx Systems Pty Ltd

    Code Engineering Using UMLModels

    Enterprise Architect is an intuitive, flexible and powerful UMLanalysis and design tool for building robust and maintainable

    software.

    This booklet describes the code engineering facilities ofEnterprise Architect.

  • All rights reserved. No parts of this work may be reproduced in any form or by any means - graphic, electronic, ormechanical, including photocopying, recording, taping, or information storage and retrieval systems - without thewritten permission of the publisher.

    Products that are referred to in this document may be either trademarks and/or registered trademarks of therespective owners. The publisher and the author make no claim to these trademarks.

    While every precaution has been taken in the preparation of this document, the publisher and the author assume noresponsibility for errors or omissions, or for damages resulting from the use of information contained in this documentor from the use of programs and source code that may accompany it. In no event shall the publisher and the author beliable for any loss of profit or any other commercial damage caused or alleged to have been caused directly orindirectly by this document.

    Printed: May 2010

    Enterprise Architect - Code Engineering Using UML Models

    1998-2010 Sparx Systems Pty Ltd

    PublisherSpecial thanks to:

    All the people who have contributed suggestions, examples, bugreports and assistance in the development of Enterprise Architect.The task of developing and maintaining this tool has been greatlyenhanced by their contribution.Managing Editor

    Technical Editors

    Sparx Systems

    Geoffrey Sparks

    Geoffrey SparksSimon McNeillyVimal KumarHenk Dekker

  • IContents

    1998-2010 Sparx Systems Pty Ltd

    Table of Contents

    Foreword 1

    Code Engineering 2

    ................................................................................................................................... 4Reverse Engineering

    .......................................................................................................................................................... 5Import Source Code

    .......................................................................................................................................................... 6Notes on Source Code Import

    .......................................................................................................................................................... 8Import a Directory Structure

    .......................................................................................................................................................... 9Import Binary Module

    .......................................................................................................................................................... 10MDG Integration and Code Engineering

    .......................................................................................................................................................... 10Classes Not Found During Import

    .......................................................................................................................................................... 10Synchronize Model and Code

    ................................................................................................................................... 12Generate Source Code

    .......................................................................................................................................................... 13Generate a Single Class

    .......................................................................................................................................................... 14Generate a Group of Classes

    .......................................................................................................................................................... 15Generate a Package

    .......................................................................................................................................................... 16Update Package Contents

    .......................................................................................................................................................... 17Namespaces

    ................................................................................................................................... 19Code Generation From Behavioral Models

    .......................................................................................................................................................... 19SW Code Generation - State Machine Diagrams

    ......................................................................................................................................................... 20Java Code Generated From State Machine Diagram

    .......................................................................................................................................................... 23State Machine Modeling For HDLs

    .......................................................................................................................................................... 26Code Generation - Interaction Diagrams

    .......................................................................................................................................................... 27Code Generation - Activity Diagrams

    ................................................................................................................................... 32Code Engineering Settings

    .......................................................................................................................................................... 32Source Code Engineering

    ......................................................................................................................................................... 32Source Code Options

    ......................................................................................................................................... 33Import Component Types

    ......................................................................................................................................................... 34Options - Code Editors

    ......................................................................................................................................................... 35Options - Object Lifetimes

    ......................................................................................................................................................... 36Options - Attribute/Operations

    ......................................................................................................................................................... 37Code Page for Source Editing

    .......................................................................................................................................................... 38Local Paths

    .......................................................................................................................................................... 39Local Paths Dialog

    .......................................................................................................................................................... 39Language Macros

    .......................................................................................................................................................... 41Set Collection Classes

    .......................................................................................................................................................... 42Language Options

    ......................................................................................................................................................... 43ActionScript Options

    ......................................................................................................................................................... 43Ada 2005 Options

    ......................................................................................................................................................... 44C Options

    ......................................................................................................................................................... 45C# Options

    ......................................................................................................................................................... 46C++ Options

    ......................................................................................................................................................... 47Delphi Options

    ......................................................................................................................................... 48Delphi Properties

    ......................................................................................................................................................... 51Java Options

    ......................................................................................................................................................... 51PHP Options

    ......................................................................................................................................................... 52Python Options

    ...........................................................................................................................................