Altova Umodel 2017 User & Reference Manual
Total Page:16
File Type:pdf, Size:1020Kb
User and Reference Manual Altova UModel 2017 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: 2017 © 2017 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 28 3.4 Object Diagrams................................................................................................................. 33 3.5 Component................................................................................................................. Diagrams 38 3.6 Deployment................................................................................................................. Diagrams 43 3.7 Round-trip................................................................................................................. engineering (model - code - model) 47 3.8 Round-trip................................................................................................................. engineering (code - model - code) 53 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 88 4.10.2 Cut, copy................................................................................................... and paste in UModel Diagrams 90 4.11 Adding/Inserting................................................................................................................. model elements 93 4.12 Hyperlinking................................................................................................................. modeling elements 95 Altova UModel 2017 1 4.13 Bank samples................................................................................................................. 100 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 131 6.4.2 Refactoring................................................................................................... Code and Synchronization 133 6.5 Forward................................................................................................................. engineering prerequisites 135 6.6 Java code................................................................................................................. to/from UModel elements 137 6.7 C# code................................................................................................................. to/from UModel elements 138 6.8 XML Schema................................................................................................................. to/from UModel elements 139 6.9 VB.NET................................................................................................................. code to/from UModel elements 140 6.10 Including................................................................................................................. other UModel projects 141 6.11 Merging................................................................................................................. UModel projects 143 6.11.1 2-way Project................................................................................................... merge 143 6.11.2 3-way Project................................................................................................... merge 144 6.11.3 Manual................................................................................................... 3-way project merge example 145 6.12 Sharing................................................................................................................. Packages and Diagrams 149 6.13 UML templates................................................................................................................. 152 6.13.1 Template................................................................................................... signatures 153 6.13.2 Template................................................................................................... binding 154 6.13.3 Template................................................................................................... usage in operations and properties 154 6.14 Project................................................................................................................. Settings 156 6.15 Enhancing................................................................................................................. performance 157 7 Creating model relationships 160 7.1 Showing................................................................................................................. model relationships 163 7.2 Associations,................................................................................................................. realizations and dependencies 165 8 Generating UML documentation 170 2 Altova UModel 2017 8.1 Supplied................................................................................................................. SPS stylesheet 177 8.2 User-defined................................................................................................................. Stylesheets 179 9 UML Diagrams 182 9.1 Behavioral................................................................................................................. Diagrams 183 9.1.1 Activity................................................................................................... Diagram 183 Inserting........................................................................................................... Activity Diagram elements 184 Creating........................................................................................................... branches and merges 186 Activity........................................................................................................... Diagram elements 189 9.1.2 State Machine..................................................................................................