<html> | |
<head> | |
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> | |
<title>Examples</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="OCL Documentation"> | |
<link rel="up" href="index.html" title="OCL Documentation"> | |
<link rel="prev" href="Installation.html" title="Installing the Eclipse OCL Examples and Editors"> | |
<link rel="next" href="EmptyExample.html" title="Empty Example Project"> | |
</head> | |
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> | |
<h1 xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">Examples</h1> | |
<div class="chapter" title="Examples"> | |
<div class="titlepage"> | |
<div> | |
<div> | |
<h2 class="title"> | |
<a name="Examples"></a>Examples</h2> | |
</div> | |
</div> | |
</div> | |
<div class="toc"> | |
<dl> | |
<dt> | |
<span class="section"><a href="Examples.html#RoyalAndLoyalExample">Royal and Loyal Example Project</a></span> | |
</dt> | |
<dt> | |
<span class="section"><a href="EmptyExample.html">Empty Example Project</a></span> | |
</dt> | |
<dt> | |
<span class="section"><a href="OCLinEcoreTutorialExampleProject.html">OCLinEcore Tutorial Example Project</a></span> | |
</dt> | |
<dt> | |
<span class="section"><a href="CompleteOCLTutorialExampleProject.html">Complete OCL Tutorial Example Project</a></span> | |
</dt> | |
<dt> | |
<span class="section"><a href="OCLInterpreterExample.html">OCL Interpreter Example</a></span> | |
</dt> | |
</dl> | |
</div> | |
<div class="section" title="Royal and Loyal Example Project"> | |
<div class="titlepage"> | |
<div> | |
<div> | |
<h2 class="title" style="clear: both"> | |
<a name="RoyalAndLoyalExample"></a>Royal and Loyal Example Project</h2> | |
</div> | |
</div> | |
</div> | |
<p>The RoyalAndLoyal example project provides a substantial example of a Complete OCL document | |
complementing an independent Ecore meta-model.</p> | |
<p>This is the standard example used in many OCL texts and courses. It was first produced as part of | |
the | |
<span class="emphasis"><em>The Object Constraint Language Second Edition</em></span> by | |
<span class="emphasis"><em>Jos Warmer</em></span> and | |
<span class="emphasis"><em>Anneke Kleppe</em></span>. | |
</p> | |
<p>This example may be used to explore a wide variety of OCL syntaxes and their presentation in the Complete OCL editor.</p> | |
<p>You may install the example by selecting | |
<span class="bold"><strong>Example...</strong></span> from the | |
<span class="bold"><strong>New</strong></span> menu, then selecting | |
<span class="bold"><strong>Royal and Loyal Example</strong></span> under the | |
<span class="bold"><strong>OCL (Object Constraint Language) plugins</strong></span>. | |
</p> | |
<p>Open | |
<span class="bold"><strong>RoyalAndLoyal.ecore</strong></span> with the OCLinEcore editor to explore the Ecore metamodel. Note how the Outline can be alphabeticized and so provide a useful overview. The outline very similar to the conventional Sample Ecore Editor tree view. | |
</p> | |
<p>Open | |
<span class="bold"><strong>RoyalAndLoyal.ocl</strong></span> with the CompleteOCL editor to explore the OCL. Note how the full AST can be explored in the Outline. | |
</p> | |
</div> | |
</div> | |
</body> | |
</html> |