blob: 014502ba2daa75a061fd06a152693424d9e1aad5 [file] [log] [blame]
<html>
<head>
<title>Creating a UML2 Model</title>
<link href="book.css" rel="stylesheet" type="text/css"/>
<meta content="DocBook XSL Stylesheets V1.75.1" name="generator"/>
<link rel="home" href="index.html" title="Xpand Documentation"/>
<link rel="up" href="uml2example.html" title="UML2 Example"/>
<link rel="prev" href="uml2example_setup_project.html" title="Setting up the project"/>
<link rel="next" href="uml2example_codegen.html" title="Code generation"/>
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<h1 xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">Creating a UML2 Model</h1>
<div class="section" title="Creating a UML2 Model">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both">
<a name="uml2example_create_model"/>Creating a UML2 Model</h2>
</div>
</div>
</div>
<p>You start by defining a UML2 model, i.e. an instance of the UML2
metamodel. Inside the project, in the source folder, you create a UML2
model that you should call <code class="filename">example.uml</code> (after
pressig<span class="emphasis">
<em> Next&gt;</em>
</span>).</p>
<div class="figure">
<a name="uml2example_create_model_1"/>
<p class="title">
<b>Figure 2. Creating a new UML2 model</b>
</p>
<div class="figure-contents">
<div class="mediaobject">
<img src="images/uml2_example/createUMLModel.png" alt="Creating a new UML2 model"/>
</div>
</div>
</div>
<br class="figure-break"/>
<p>On the last page of the wizard you have to select the model object.
Make sure its a <span class="emphasis">
<em>Model</em>
</span>, not a
<span class="emphasis">
<em>Profile</em>
</span>. </p>
<div class="figure">
<a name="uml2example_select_modelobject"/>
<p class="title">
<b>Figure 3. Selecting the Model object</b>
</p>
<div class="figure-contents">
<div class="mediaobject">
<img src="images/uml2_example/modelobject.png" alt="Selecting the Model object"/>
</div>
</div>
</div>
<p>
<br class="figure-break"/>
</p>
<div class="section" title="Modelling the content">
<div class="titlepage">
<div>
<div>
<h3 class="title">
<a name="uml2example_modelling"/>Modelling the content</h3>
</div>
</div>
</div>
<p>You should then build a model that looks somewhat like this:
</p>
<div class="figure">
<a name="uml2example_examplemodel"/>
<p class="title">
<b>Figure 4. Example model</b>
</p>
<div class="figure-contents">
<div class="mediaobject">
<img src="images/uml2_example/exampleModel.png" alt="Example model"/>
</div>
</div>
</div>
<p>
<br class="figure-break"/>
</p>
<p>By the way, if you rename the <code class="filename">.uml</code> file to
<code class="filename">.ecore</code>, you can edit the model using the ecore
editors. To inspect the model, they provide a somewhat better view, so
you might try!</p>
</div>
</div>
</body>
</html>