Altova Umodel 2016 User & Reference Manual
Total Page:16
File Type:pdf, Size:1020Kb
User and Reference Manual Altova UModel 2016 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: 2015 © 2015 Altova GmbH Table of Contents 1 UModel 3 2 Introducing UModel 6 3 UModel tutorial 8 3.1 Starting .................................................................................................................UModel 10 3.2 Use cases................................................................................................................. 14 3.3 Class Diagrams................................................................................................................. 22 3.3.1 Creating................................................................................................... derived classes 29 3.4 Object Diagrams................................................................................................................. 34 3.5 Component................................................................................................................. Diagrams 39 3.6 Deployment................................................................................................................. Diagrams 44 3.7 Round-trip................................................................................................................. engineering (model - code - model) 48 3.8 Round-trip................................................................................................................. engineering (code - model - code) 54 4 UModel User Interface 64 4.1 Model Tree................................................................................................................. 65 4.2 Diagram................................................................................................................. Tree 70 4.3 Favorites................................................................................................................. 72 4.4 Properties................................................................................................................. 74 4.5 Styles ................................................................................................................. 76 4.6 Hierarchy................................................................................................................. 79 4.7 Overview................................................................................................................. 82 4.8 Documentation................................................................................................................. 83 4.9 Messages................................................................................................................. 84 4.10 Diagram................................................................................................................. pane 85 4.10.1 Diagram................................................................................................... properties 89 4.10.2 Cut, copy................................................................................................... and paste in UModel Diagrams 91 4.11 Adding/Inserting................................................................................................................. model elements 94 4.12 Hyperlinking................................................................................................................. modeling elements 96 Altova UModel 2016 1 4.13 Bank samples................................................................................................................. 101 5 UModel Command Line Interface 104 5.1 File: New................................................................................................................. / Load / Save options 108 6 Projects and code engineering 110 6.1 Minimalist................................................................................................................. UModel project - starting from scratch 113 6.2 Importing................................................................................................................. source code into projects 118 6.3 Importing................................................................................................................. Java, C# and VB binaries 123 6.4 Synchronizing................................................................................................................. the Model and Source Code 129 6.4.1 Synchronization................................................................................................... Tips 132 6.4.2 Refactoring................................................................................................... Code and Synchronization 134 6.5 Forward................................................................................................................. engineering prerequisites 136 6.6 Java code................................................................................................................. to/from UModel elements 138 6.7 C# code................................................................................................................. to/from UModel elements 139 6.8 XML Schema................................................................................................................. to/from UModel elements 140 6.9 VB.NET................................................................................................................. code to/from UModel elements 141 6.10 Database................................................................................................................. to/from UModel elements 142 6.11 Including................................................................................................................. other UModel projects 143 6.12 Merging................................................................................................................. UModel projects 145 6.12.1 2-way Project................................................................................................... merge 146 6.12.2 3-way Project................................................................................................... merge 147 6.12.3 Manual................................................................................................... 3-way project merge example 149 6.13 Sharing................................................................................................................. Packages and Diagrams 152 6.14 UML templates................................................................................................................. 155 6.14.1 Template................................................................................................... signatures 157 6.14.2 Template................................................................................................... binding 158 6.14.3 Template................................................................................................... usage in operations and properties 159 6.15 Project................................................................................................................. Settings 160 6.16 Enhancing................................................................................................................. performance 161 7 Creating model relationships 164 7.1 Showing................................................................................................................. model relationships 167 7.2 Associations,................................................................................................................. realizations and dependencies 169 2 Altova UModel 2016 8 Generating UML documentation 174 8.1 Supplied................................................................................................................. SPS stylesheet 181 8.2 User-defined................................................................................................................. Stylesheets 182 9 UML Diagrams 184 9.1 Behavioral................................................................................................................. Diagrams 185 9.1.1 Activity................................................................................................... Diagram 186 Inserting........................................................................................................... Activity Diagram elements 187 Creating........................................................................................................... branches and merges 189 Activity..........................................................................................................