Altova Umodel 2007 User & Reference Manual
Total Page:16
File Type:pdf, Size:1020Kb
User and Reference Manual Altova UModel 2007 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: 2007 © 2007 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 UModel tutorial 8 3.1 Starting UModel................................................................................................................. 9 3.2 Use cases ................................................................................................................. 12 3.3 Class Diagrams................................................................................................................. 19 3.3.1 Creating derived................................................................................................... classes 25 3.4 Object Diagrams................................................................................................................. 30 3.5 Component Diagrams................................................................................................................. 35 3.6 Deployment Diagrams................................................................................................................. 40 3.7 Round-trip engineering................................................................................................................. (model - code - model) 44 3.8 Round-trip engineering................................................................................................................. (code - model - code) 50 4 UModel User Interface 58 4.1 Model Tree pane................................................................................................................. 59 4.1.1 Diagram Tree................................................................................................... tab 63 4.1.2 Favorites tab ................................................................................................... 65 4.2 Properties pane................................................................................................................. 66 4.3 Hierarchy tab ................................................................................................................. 69 4.4 Overview pane................................................................................................................. 72 4.5 Messages window................................................................................................................. 73 4.6 Diagram pane ................................................................................................................. 74 4.6.1 Cut, copy and................................................................................................... paste in UModel Diagrams 77 4.7 Adding/Inserting................................................................................................................. model elements 80 4.8 Hyperlinking modeling................................................................................................................. elements 82 4.9 UModel Command................................................................................................................. line interface 86 4.10 Bank samples ................................................................................................................. 89 Altova UModel 2007 1 5 Projects and code engineering 92 5.1 Importing source................................................................................................................. code into projects 94 5.2 Importing C# .................................................................................................................and Java binaries 98 5.3 Synchronizing................................................................................................................. Model and source code 103 5.4 Forward engineering................................................................................................................. prerequisites 105 5.5 Java code to/from................................................................................................................. UModel elements 107 5.6 C# code to/from................................................................................................................. UModel elements 112 5.7 XML Schema................................................................................................................. to/from UModel elements 125 5.8 Including other................................................................................................................. UModel projects 134 5.9 Sharing Packages................................................................................................................. and Diagrams 136 5.10 UML templates................................................................................................................. 139 5.10.1 Template signatures................................................................................................... 141 5.10.2 Template binding................................................................................................... 142 5.10.3 Template usage................................................................................................... in operations and properties 143 5.11 Project Settings................................................................................................................. 144 5.12 Enhancing performance................................................................................................................. 145 6 Creating model relationships 148 6.1 Associations,................................................................................................................. realizations and dependencies 150 6.2 Showing model................................................................................................................. relationships 152 7 Profiles and stereotypes 154 7.1 Adding Stereotypes................................................................................................................. and defining tagged values 156 8 Generating UML documentation 162 9 UML Diagrams 168 9.1 Behavioral Diagrams................................................................................................................. 169 9.1.1 Activity Diagram................................................................................................... 170 Inserting........................................................................................................... Activity Diagram elements 171 Creating........................................................................................................... branches and merges 173 Diagram........................................................................................................... elements 175 9.1.2 State Machine................................................................................................... Diagram 184 Inserting........................................................................................................... state machine diagram elements 184 2 Altova UModel 2007 Creating........................................................................................................... states, activities and transitions 185 Composite........................................................................................................... states 189 Diagram........................................................................................................... elements 192 9.1.3 Use Case Diagram................................................................................................... 194 9.1.4 Communication................................................................................................... Diagram 195 Inserting........................................................................................................... Communication Diagam elements 195 9.1.5 Interaction Overview................................................................................................... Diagram 198 Inserting........................................................................................................... Interaction Overview elements 198 9.1.6 Sequence Diagram................................................................................................... 203 Inserting..........................................................................................................