﻿<?xml-stylesheet type="text/xsl" href="../../../templates/doc.xsl"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
<html 
	xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:doc="http://www.lepus.org.uk/doc" 
	xmlns:classz="http://www.lepus.org.uk/classz" 
	xmlns:fopl="http://www.lepus.org.uk/fopl" 
	xml:lang="EN-GB" 
	xmlns:v="urn:schemas-microsoft-com:vml" 
	xmlns:o="urn:schemas-microsoft-com:office:office">

<head>
	<link rel="stylesheet" type="text/css" href="../../../templates/doc.css" />
	<title></title>
	<meta http-equiv="Content-Style-Type" content="text/css" />
	<meta name="Author" content="Amnon H Eden" />
	</head>


<body>


<h5><a href="../../">Sample specifications in LePUS3 and Class-Z:</a></h5>

<p class="pagetitle">JDom</p>

<div class="abstract">

	<p>This page demonstrates how object-oriented design statements can be made 
		in <a href="http://lepus.org.uk/">LePUS3 and/or Class-Z</a>.</p>
	<p><span>JDom (<a href="http://www.jdom.org/">www.jdom.org/</a>) offers 
	simple and effective means for reading, writing and manipulating files in 
	the eXtensible Markup Language&mdash;XML. Below we model two hierarchies in JDom's.</span></p>
</div>

<h3>Links</h3>

<div class="abstract">

	<ul>
		<li><a href="../../../ref/legend/legend.xml">Legend: Key to LePUS3 and Class-Z Symbols</a></li>
		<li><a href="../../../ref/refman/refman.xml">LePUS3 &amp; Class-Z Reference Manual</a></li>
		<li><a href="../../../ref/companion/">The 'Gang of Four' Companion: Formal specification of design patterns in LePUS3 and 
		Class-Z</a></li>
	</ul>
	
</div>

<doc:toc />

<h1>The Parents and Contents hierarchies</h1>


<table class="chartandschema">
<tr>
	<td><img class="chart" alt="" src="parents-contents.gif" />&nbsp;</td>
</tr>
<tr>
	<th>The Parents and Contents hierarchies in JDom&nbsp; (<a href="../../../ref/legend/legend.xml">legend</a>)</th>
</tr>
</table>


<h1>The Parents hierarchy</h1>

<table class="chartandschema">
<tr>
	<td>
	<img class="chart" alt="" src="parents0dim.gif" /></td>
	<td>
	<img class="chart" alt="" src="parents1dim.gif" /></td>
</tr>
<tr>
	<th>The Parents hierarchy in JDom<br />
		modelled using 0-dimensional constants&nbsp; (<a href="../../../ref/legend/legend.xml">legend</a>)</th>
	<th>The Parents hierarchy in JDom<br />
		modelled using a 1-dimensional hierarchy constant&nbsp; (<a href="../../../ref/legend/legend.xml">legend</a>)</th>
</tr>
</table>

<h1>The Contents hierarchy</h1>

<table class="chartandschema">
<tr>
	<td>
	<img class="chart" alt="" src="contents0dim.gif" />&nbsp;</td>
	<td>
	<img class="chart" alt="" src="contents1dim.gif" />&nbsp;</td>
</tr>
<tr>
	<th>The Contents hierarchy in JDom<br />
		modelled using 0-dimensional constants&nbsp; (<a href="../../../ref/legend/legend.xml">legend</a>)</th>
	<th>The Contents hierarchy in JDom<br />
		modelled using a 1-dimensional hierarchy constant&nbsp; (<a href="../../../ref/legend/legend.xml">legend</a>)</th>
</tr>
</table>

<h1>The Factories hierarchy</h1>

<table class="chartandschema">
<tr>
	<td><img class="chart" alt="" src="factories2dim.gif" /></td>
</tr>
<tr>
	<th>The Factories hierarchy in JDom<br />
		modelled using 1-dimensional superimposition terms (<a href="../../../ref/legend/legend.xml">legend</a>)</th>
</tr>
<tr>
	<td><img class="chart" alt="" src="factories1dim.gif" /></td>
</tr>
<tr>
	<th>The Factories hierarchy in JDom<br />
		modelled using 2-dimensional superimposition terms (<a href="../../../ref/legend/legend.xml">legend</a>)</th>
</tr>
</table>




</body>
</html>

