Altova Umodel 2018 User & Reference Manual
Total Page:16
File Type:pdf, Size:1020Kb
User and Reference Manual Altova UModel 2018 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: 2018 © 2018 Altova GmbH Table of Contents 1 UModel 3 2 Introducing UModel 6 2.1 Support Notes................................................................................................................. 7 3 UModel Tutorial 10 3.1 Getting Started................................................................................................................. 11 3.2 Use Cases................................................................................................................. 14 3.3 Class Diagrams................................................................................................................. 23 3.3.1 Creating................................................................................................... Derived Classes 32 3.4 Object Diagrams................................................................................................................. 37 3.5 Component................................................................................................................. Diagrams 44 3.6 Deployment................................................................................................................. Diagrams 50 3.7 Forward................................................................................................................. Engineering (from Model to Code) 55 3.8 Reverse................................................................................................................. Engineering (from Code to Model) 65 4 UModel Graphical User Interface 76 4.1 Model Tree................................................................................................................. Window 78 4.2 Diagram................................................................................................................. Tree Window 82 4.3 Favorites................................................................................................................. Window 83 4.4 Properties................................................................................................................. Window 84 4.5 Styles Window................................................................................................................. 85 4.6 Hierarchy................................................................................................................. Window 86 4.7 Overview................................................................................................................. Window 88 4.8 Documentation................................................................................................................. Window 89 4.9 Messages................................................................................................................. Window 90 4.10 Diagram................................................................................................................. Window 92 4.11 Diagram................................................................................................................. Pane 93 5 UModel Command Line Interface 96 Altova UModel 2018 1 5.1 File: New................................................................................................................. / Load / Save options 100 6 How to Model... 102 6.1 Elements................................................................................................................. 103 6.1.1 Creating................................................................................................... Elements 103 6.1.2 Inserting................................................................................................... Elements from the Model into a Diagram 104 6.1.3 Renaming,................................................................................................... Moving, and Copying Elements 105 6.1.4 Deleting................................................................................................... Elements 107 6.1.5 Finding ...................................................................................................and Replacing Text 108 6.1.6 Checking................................................................................................... Where and If Elements Are Used 109 6.1.7 Constraining................................................................................................... Elements 110 6.1.8 Hyperlinking................................................................................................... Elements 112 6.1.9 Documenting................................................................................................... Elements 114 6.1.10 Changing................................................................................................... the Style of Elements 115 6.2 Diagrams................................................................................................................. 117 6.2.1 Creating................................................................................................... Diagrams 117 6.2.2 Generating................................................................................................... Diagrams 118 6.2.3 Opening................................................................................................... Diagrams 120 6.2.4 Deleting................................................................................................... Diagrams 121 6.2.5 Changing................................................................................................... the Style of Diagrams 121 6.2.6 Aligning................................................................................................... and Resizing Modeling Elements 123 6.2.7 Type Autocompletion................................................................................................... in Classes 125 6.2.8 Zooming................................................................................................... into/out of Diagrams 127 6.3 Relationships................................................................................................................. 128 6.3.1 Creating................................................................................................... Relationships 128 6.3.2 Changing................................................................................................... the Style of Lines and Relationships 129 6.3.3 Viewing................................................................................................... Element Relationships 131 6.3.4 Associations................................................................................................... 131 6.3.5 Collection................................................................................................... Associations 134 6.3.6 Containment................................................................................................... 137 7 Projects and Code Engineering 140 7.1 Managing................................................................................................................. UModel Projects 141 7.1.1 Creating,................................................................................................... Opening, and Saving Projects 141 7.1.2 Opening................................................................................................... Projects from a URL 142 7.1.3 Moving................................................................................................... Projects to a New Directory 146 7.1.4 Including................................................................................................... Subprojects 147 7.1.5 Sharing................................................................................................... Packages and Diagrams 149 7.1.6 Tips for................................................................................................... Enhancing Performance 152 2 Altova UModel 2018 7.2 Generating................................................................................................................. Program Code 153 7.2.1 Checking................................................................................................... Project Syntax 155 7.2.2 Code Generation................................................................................................... Options 157 7.2.3 Example:................................................................................................... Generate Java Code 159 7.2.4 SPL Templates..................................................................................................