Altova Umodel 2012 User & Reference Manual
Total Page:16
File Type:pdf, Size:1020Kb
User and Reference Manual Altova UModel 2012 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: 2012 © 2012 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 14 4.1 Starting UModel................................................................................................................. 16 4.2 Use cases ................................................................................................................. 20 4.3 Class Diagrams................................................................................................................. 28 4.3.1 Creating derived................................................................................................... classes 34 4.4 Object Diagrams................................................................................................................. 39 4.5 Component Diagrams................................................................................................................. 44 4.6 Deployment Diagrams................................................................................................................. 49 4.7 Round-trip engineering................................................................................................................. (model - code - model) 53 4.8 Round-trip engineering................................................................................................................. (code - model - code) 59 5 UModel User Interface 66 5.1 Model Tree ................................................................................................................. 67 5.2 Diagram Tree ................................................................................................................. 71 5.3 Favorites ................................................................................................................. 73 5.4 Properties ................................................................................................................. 74 5.5 Styles ................................................................................................................. 76 5.6 Hierarchy ................................................................................................................. 79 5.7 Overview ................................................................................................................. 82 5.8 Documentation................................................................................................................. 83 5.9 Messages ................................................................................................................. 84 5.10 Diagram pane ................................................................................................................. 85 5.10.1 Diagram properties................................................................................................... 89 5.10.2 Cut, copy and................................................................................................... paste in UModel Diagrams 91 Altova UModel 2012 1 5.11 Adding/Inserting................................................................................................................. model elements 94 5.12 Hyperlinking modeling................................................................................................................. elements 96 5.13 Bank samples................................................................................................................. 101 6 UModel Command line interface 106 6.1 File: New / Load................................................................................................................. / Save options 110 7 Projects and code engineering 112 7.1 Minimalist UModel................................................................................................................. project - starting from scratch 115 7.2 Importing source................................................................................................................. code into projects 120 7.3 Importing Java,................................................................................................................. C# and VB binaries 125 7.4 Synchronizing................................................................................................................. Model and source code 130 7.4.1 Synchronization................................................................................................... tips 132 7.4.2 Refactoring code................................................................................................... and synchronization 134 7.5 Forward engineering................................................................................................................. prerequisites 135 7.6 Java code to/from................................................................................................................. UModel elements 137 7.7 C# code to/from................................................................................................................. UModel elements 138 7.8 XML Schema................................................................................................................. to/from UModel elements 139 7.9 VB.NET code................................................................................................................. to/from UModel elements 140 7.10 Database to/from................................................................................................................. UModel elements 141 7.11 Including other................................................................................................................. UModel projects 142 7.12 Merging UModel................................................................................................................. projects 144 7.12.1 2-way Project................................................................................................... merge 145 7.12.2 3-way Project................................................................................................... merge 146 7.12.3 Manual 3-way................................................................................................... project merge example 148 7.13 Sharing Packages................................................................................................................. and Diagrams 151 7.14 UML templates................................................................................................................. 154 7.14.1 Template signatures................................................................................................... 156 7.14.2 Template binding................................................................................................... 157 7.14.3 Template usage................................................................................................... in operations and properties 158 7.15 Project Settings................................................................................................................. 159 7.16 Enhancing performance................................................................................................................. 160 8 Creating model relationships 162 8.1 Showing model................................................................................................................. relationships 165 8.2 Associations,................................................................................................................. realizations and dependencies 167 2 Altova UModel 2012 9 Generating UML documentation 172 9.1 Supplied SPS................................................................................................................. stylesheet 179 9.2 User-defined................................................................................................................. Stylesheets 181 10 UML Diagrams 184 10.1 Behavioral Diagrams................................................................................................................. 185 10.1.1 Activity Diagram................................................................................................... 186 Inserting........................................................................................................... Activity Diagram elements 187 Creating..........................................................................................................