Altova Umodel 2009 User & Reference Manual
Total Page:16
File Type:pdf, Size:1020Kb
User and Reference Manual Altova UModel 2009 User & Reference Manual All rights reserved. No parts of this work may be reproduced in any form or by any means - graphic, electronic, or mechanical, including photocopying, recording, taping, or information storage and retrieval systems - without the written permission of the publisher. Products that are referred to in this document may be either trademarks and/or registered trademarks of the respective 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 no responsibility for errors or omissions, or for damages resulting from the use of information contained in this document or from the use of programs and source code that may accompany it. In no event shall the publisher and the author be liable for any loss of profit or any other commercial damage caused or alleged to have been caused directly or indirectly by this document. Published: 2009 © 2009 Altova GmbH UML®, OMG™, Object Management Group™, and Unified Modeling Language™ are either registered trademarks or trademarks of Object Management Group, Inc. in the United States and/or other countries. Table of Contents 1 UModel 3 2 Introducing UModel 6 3 What's new in UModel 2009 8 3.1 What's new in UModel................................................................................................................. 2008 Release 2 9 3.2 What's new in................................................................................................................. UModel 2008 10 4 UModel tutorial 12 4.1 Starting UModel................................................................................................................. 14 4.2 Use cases ................................................................................................................. 18 4.3 Class Diagrams................................................................................................................. 25 4.3.1 Creating derived................................................................................................... classes 31 4.4 Object Diagrams................................................................................................................. 36 4.5 Component Diagrams................................................................................................................. 41 4.6 Deployment Diagrams................................................................................................................. 46 4.7 Round-trip engineering................................................................................................................. (model - code - model) 50 4.8 Round-trip engineering................................................................................................................. (code - model - code) 56 5 UModel User Interface 64 5.1 Model Tree ................................................................................................................. 65 5.2 Diagram Tree ................................................................................................................. 69 5.3 Favorites ................................................................................................................. 71 5.4 Properties ................................................................................................................. 72 5.5 Styles ................................................................................................................. 74 5.6 Hierarchy ................................................................................................................. 77 5.7 Overview - Documentation................................................................................................................. 80 5.8 Messages ................................................................................................................. 81 5.9 Diagram pane ................................................................................................................. 82 5.9.1 Diagram properties................................................................................................... 86 Altova UModel 2009 1 5.9.2 Cut, copy and................................................................................................... paste in UModel Diagrams 88 5.10 Adding/Inserting................................................................................................................. model elements 91 5.11 Hyperlinking modeling................................................................................................................. elements 93 5.12 Bank samples ................................................................................................................. 97 6 UModel Command line interface 100 6.1 File: New / Load................................................................................................................. / Save options 103 7 Projects and code engineering 106 7.1 Minimalist UModel................................................................................................................. project - starting from scratch 108 7.2 Importing source................................................................................................................. code into projects 112 7.3 Importing Java,................................................................................................................. C# and VB binaries 117 7.4 Synchronizing................................................................................................................. Model and source code 122 7.4.1 Synchronization................................................................................................... tips 124 7.4.2 Refactoring code................................................................................................... and synchronization 126 7.5 Forward engineering................................................................................................................. prerequisites 127 7.6 Java code to/from................................................................................................................. UModel elements 129 7.7 C# code to/from................................................................................................................. UModel elements 130 7.8 XML Schema................................................................................................................. to/from UModel elements 131 7.9 VB.NET code................................................................................................................. to/from UModel elements 132 7.10 Including other................................................................................................................. UModel projects 133 7.11 Merging UModel................................................................................................................. projects 135 7.12 Sharing Packages................................................................................................................. and Diagrams 136 7.13 UML templates................................................................................................................. 139 7.13.1 Template signatures................................................................................................... 141 7.13.2 Template binding................................................................................................... 142 7.13.3 Template usage................................................................................................... in operations and properties 143 7.14 Project Settings................................................................................................................. 144 7.15 Enhancing performance................................................................................................................. 145 8 Creating model relationships 148 8.1 Associations,................................................................................................................. realizations and dependencies 150 8.2 Showing model................................................................................................................. relationships 153 9 Generating UML documentation 156 2 Altova UModel 2009 10 UML Diagrams 164 10.1 Behavioral Diagrams................................................................................................................. 165 10.1.1 Activity Diagram................................................................................................... 166 Inserting........................................................................................................... Activity Diagram elements 167 Creating........................................................................................................... branches and merges 169 Activity........................................................................................................... Diagram elements 171 10.1.2 State Machine................................................................................................... Diagram 180 Inserting........................................................................................................... state machine diagram elements 180 Creating..........................................................................................................