Altova Umodel 2008 User & Reference Manual
Total Page:16
File Type:pdf, Size:1020Kb
User and Reference Manual Altova UModel 2008 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: 2008 © 2008 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 2008 Release 2 8 3.1 What's new in UModel................................................................................................................. 2008 9 4 UModel tutorial 12 4.1 Starting UModel................................................................................................................. 14 4.2 Use cases ................................................................................................................. 17 4.3 Class Diagrams................................................................................................................. 24 4.3.1 Creating derived................................................................................................... classes 30 4.4 Object Diagrams................................................................................................................. 35 4.5 Component Diagrams................................................................................................................. 40 4.6 Deployment Diagrams................................................................................................................. 45 4.7 Round-trip engineering................................................................................................................. (model - code - model) 49 4.8 Round-trip engineering................................................................................................................. (code - model - code) 55 5 UModel User Interface 62 5.1 Model Tree ................................................................................................................. 63 5.2 Diagram Tree ................................................................................................................. 67 5.3 Favorites ................................................................................................................. 69 5.4 Properties ................................................................................................................. 70 5.5 Styles ................................................................................................................. 72 5.6 Hierarchy ................................................................................................................. 75 5.7 Overview - Documentation................................................................................................................. 78 5.8 Messages ................................................................................................................. 79 5.9 Diagram pane ................................................................................................................. 80 5.9.1 Diagram properties................................................................................................... 84 5.9.2 Cut, copy and................................................................................................... paste in UModel Diagrams 86 Altova UModel 2008 1 5.10 Adding/Inserting................................................................................................................. model elements 89 5.11 Hyperlinking modeling................................................................................................................. elements 91 5.12 Bank samples ................................................................................................................. 95 6 UModel Command line interface 98 6.1 File: New / Load................................................................................................................. / Save options 101 7 Projects and code engineering 104 7.1 Minimalist UModel................................................................................................................. project - starting from scratch 106 7.2 Importing source................................................................................................................. code into projects 110 7.3 Importing Java,................................................................................................................. C# and VB binaries 114 7.4 Synchronizing................................................................................................................. Model and source code 119 7.4.1 Synchronization................................................................................................... tips 121 7.5 Forward engineering................................................................................................................. prerequisites 123 7.6 Java code to/from................................................................................................................. UModel elements 125 7.7 C# code to/from................................................................................................................. UModel elements 126 7.8 XML Schema................................................................................................................. to/from UModel elements 127 7.9 VB.NET code................................................................................................................. to/from UModel elements 128 7.10 Including other................................................................................................................. UModel projects 129 7.11 Merging UModel................................................................................................................. projects 131 7.12 Sharing Packages................................................................................................................. and Diagrams 132 7.13 UML templates................................................................................................................. 135 7.13.1 Template signatures................................................................................................... 137 7.13.2 Template binding................................................................................................... 138 7.13.3 Template usage................................................................................................... in operations and properties 139 7.14 Project Settings................................................................................................................. 140 7.15 Enhancing performance................................................................................................................. 141 8 Creating model relationships 144 8.1 Associations,................................................................................................................. realizations and dependencies 146 8.2 Showing model................................................................................................................. relationships 149 9 Stereotypes and Profiles 152 9.1 Adding Stereotypes................................................................................................................. and defining tagged values 154 9.2 Stereotypes and................................................................................................................. enumerations 158 2 Altova UModel 2008 9.3 User-defined................................................................................................................. stereotype styles 160 10 Generating UML documentation 164 11 UML Diagrams 170 11.1 Behavioral Diagrams................................................................................................................. 171 11.1.1 Activity Diagram................................................................................................... 172 Inserting........................................................................................................... Activity Diagram elements 173 Creating........................................................................................................... branches and merges 175 Activity........................................................................................................... Diagram elements 177 11.1.2 State Machine................................................................................................... Diagram 186 Inserting..........................................................................................................