Altova Umodel 2014 User & Reference Manual
Total Page:16
File Type:pdf, Size:1020Kb
User and Reference Manual Altova UModel 2014 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: 2014 © 2014 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 35 4.4 Object Diagrams................................................................................................................. 40 4.5 Component................................................................................................................. Diagrams 45 4.6 Deployment................................................................................................................. Diagrams 50 4.7 Round-trip................................................................................................................. engineering (model - code - model) 54 4.8 Round-trip................................................................................................................. engineering (code - model - code) 60 5 UModel User Interface 68 5.1 Model Tree................................................................................................................. 69 5.2 Diagram................................................................................................................. Tree 74 5.3 Favorites................................................................................................................. 76 5.4 Properties................................................................................................................. 78 5.5 Styles ................................................................................................................. 80 5.6 Hierarchy................................................................................................................. 83 5.7 Overview................................................................................................................. 86 5.8 Documentation................................................................................................................. 87 5.9 Messages................................................................................................................. 88 5.10 Diagram................................................................................................................. pane 89 5.10.1 Diagram................................................................................................... properties 93 5.10.2 Cut, copy................................................................................................... and paste in UModel Diagrams 95 Altova UModel 2014 1 5.11 Adding/Inserting................................................................................................................. model elements 98 5.12 Hyperlinking................................................................................................................. modeling elements 100 5.13 Bank samples................................................................................................................. 105 6 UModel Command line interface 110 6.1 File: New................................................................................................................. / Load / Save options 114 7 Projects and code engineering 116 7.1 Minimalist................................................................................................................. UModel project - starting from scratch 119 7.2 Importing................................................................................................................. source code into projects 124 7.3 Importing................................................................................................................. Java, C# and VB binaries 129 7.4 Synchronizing................................................................................................................. Model and source code 134 7.4.1 Synchronization................................................................................................... tips 137 7.4.2 Refactoring................................................................................................... code and synchronization 139 7.5 Forward................................................................................................................. engineering prerequisites 140 7.6 Java code................................................................................................................. to/from UModel elements 142 7.7 C# code................................................................................................................. to/from UModel elements 143 7.8 XML Schema................................................................................................................. to/from UModel elements 144 7.9 VB.NET................................................................................................................. code to/from UModel elements 145 7.10 Database................................................................................................................. to/from UModel elements 146 7.11 Including................................................................................................................. other UModel projects 147 7.12 Merging................................................................................................................. UModel projects 149 7.12.1 2-way Project................................................................................................... merge 150 7.12.2 3-way Project................................................................................................... merge 151 7.12.3 Manual................................................................................................... 3-way project merge example 153 7.13 Sharing................................................................................................................. Packages and Diagrams 156 7.14 UML templates................................................................................................................. 159 7.14.1 Template................................................................................................... signatures 161 7.14.2 Template................................................................................................... binding 162 7.14.3 Template................................................................................................... usage in operations and properties 163 7.15 Project................................................................................................................. Settings 164 7.16 Enhancing................................................................................................................. performance 165 8 Creating model relationships 168 8.1 Showing................................................................................................................. model relationships 171 8.2 Associations,................................................................................................................. realizations and dependencies 173 2 Altova UModel 2014 9 Generating UML documentation 178 9.1 Supplied................................................................................................................. SPS stylesheet 185 9.2 User-defined................................................................................................................. Stylesheets 187 10 UML Diagrams 190 10.1 Behavioral................................................................................................................. Diagrams 191 10.1.1 Activity................................................................................................... Diagram 192 Inserting........................................................................................................... Activity Diagram elements 193 Creating..........................................................................................................