Altova Umodel 2010 User & Reference Manual
Total Page:16
File Type:pdf, Size:1020Kb
User and Reference Manual Altova UModel 2010 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: 2010 © 2010 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 8 4 UModel tutorial 12 4.1 Starting UModel................................................................................................................. 14 4.2 Use cases ................................................................................................................. 18 4.3 Class Diagrams................................................................................................................. 26 4.3.1 Creating derived................................................................................................... classes 32 4.4 Object Diagrams................................................................................................................. 37 4.5 Component Diagrams................................................................................................................. 42 4.6 Deployment Diagrams................................................................................................................. 47 4.7 Round-trip engineering................................................................................................................. (model - code - model) 51 4.8 Round-trip engineering................................................................................................................. (code - model - code) 57 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 ................................................................................................................. 80 5.8 Documentation................................................................................................................. 81 5.9 Messages ................................................................................................................. 82 5.10 Diagram pane ................................................................................................................. 83 5.10.1 Diagram properties................................................................................................... 87 5.10.2 Cut, copy and................................................................................................... paste in UModel Diagrams 89 Altova UModel 2010 1 5.11 Adding/Inserting................................................................................................................. model elements 92 5.12 Hyperlinking modeling................................................................................................................. elements 94 5.13 Bank samples ................................................................................................................. 99 6 UModel Command line interface 102 6.1 File: New / Load................................................................................................................. / Save options 105 7 Projects and code engineering 108 7.1 Minimalist UModel................................................................................................................. project - starting from scratch 111 7.2 Importing source................................................................................................................. code into projects 115 7.3 Importing Java,................................................................................................................. C# and VB binaries 120 7.4 Synchronizing................................................................................................................. Model and source code 125 7.4.1 Synchronization................................................................................................... tips 127 7.4.2 Refactoring code................................................................................................... and synchronization 129 7.5 Forward engineering................................................................................................................. prerequisites 130 7.6 Java code to/from................................................................................................................. UModel elements 132 7.7 C# code to/from................................................................................................................. UModel elements 133 7.8 XML Schema................................................................................................................. to/from UModel elements 134 7.9 VB.NET code................................................................................................................. to/from UModel elements 135 7.10 Including other................................................................................................................. UModel projects 136 7.11 Merging UModel................................................................................................................. projects 138 7.12 Sharing Packages................................................................................................................. and Diagrams 139 7.13 UML templates................................................................................................................. 142 7.13.1 Template signatures................................................................................................... 144 7.13.2 Template binding................................................................................................... 145 7.13.3 Template usage................................................................................................... in operations and properties 146 7.14 Project Settings................................................................................................................. 147 7.15 Enhancing performance................................................................................................................. 148 8 Creating model relationships 150 8.1 Associations,................................................................................................................. realizations and dependencies 153 8.2 Showing model................................................................................................................. relationships 156 9 Generating UML documentation 160 2 Altova UModel 2010 10 UML Diagrams 166 10.1 Behavioral Diagrams................................................................................................................. 167 10.1.1 Activity Diagram................................................................................................... 168 Inserting........................................................................................................... Activity Diagram elements 169 Creating........................................................................................................... branches and merges 171 Activity........................................................................................................... Diagram elements 173 10.1.2 State Machine................................................................................................... Diagram 182 Inserting........................................................................................................... state machine diagram elements 183 Creating........................................................................................................... states, activities and transitions 183 Composite........................................................................................................... states 187 State Machine..........................................................................................................