blob: 5156b2f6f64ff0b88a9417ba97799bc3b43aee3b [file] [log] [blame]
<%@ jet package="org.eclipse.jwt.we.plugins.doc" imports="org.eclipse.jwt.meta.model.core.Model
org.eclipse.jwt.meta.model.organisations.Role org.eclipse.jwt.meta.model.application.Application
org.eclipse.jwt.meta.model.data.Data
org.eclipse.jwt.meta.model.processes.Activity org.eclipse.jwt.meta.model.organisations.OrganisationUnit
org.eclipse.jwt.meta.model.core.Comment org.eclipse.jwt.meta.model.data.InputParameter
org.eclipse.jwt.meta.model.data.OutputParameter org.eclipse.jwt.meta.model.data.Parameter
org.eclipse.jwt.meta.PluginProperties
java.util.*" class="HtmlDocumentation" %>
<% Object[] arguments = (Object[])argument;
Model model = (Model)arguments[0];
List roles = (List)arguments[1];
List applications = (List)arguments[2];
List datas = (List)arguments[3];
List processes = (List)arguments[4];
int counter = 0;
%>
<html>
<head>
<title><%= model.getName() %></title>
<link href="style.css" rel="stylesheet" type="text/css" media="all">
</head>
<body link="#000000" vlink="#000000" alink="#000000" >
<p>&nbsp;</p>
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="95%" height="100%">
<tr> <!-- heading line -->
<td width="1" height="1" bgcolor="#000000"></td>
<td height="1" bgcolor="#000000"></td>
<td width="1" height="1" bgcolor="#000000"></td>
</tr>
<tr>
<td width="1" bgcolor="#000000"></td> <!-- left line -->
<td id="greatcontenttable" align="center" valign="top"> <!-- beginning content table -->
<br><br><br><br>
<h1><u><%= Messages.doc_title%> <%= model.getName() %></u></h1>
<br><br><br><br>
<% if (model.getAuthor() != "" || model.getVersion() != "" || model.getDescription() != "") { %>
<table id="infotable">
<% if (model.getAuthor() != "") { %>
<tr>
<td><%= PluginProperties.getString("model_Model_author_name") %>: </td>
<td><%= model.getAuthor() %></td>
</tr>
<% } %>
<% if (model.getVersion() != "") { %>
<tr>
<td><%= PluginProperties.getString("model_Model_version_name") %>: </td>
<td><%= model.getVersion() %></td>
</tr>
<% } %>
<% if (model.getDescription() != "") { %>
<tr>
<td><%= PluginProperties.getString("model_Model_description_name") %>: </td>
<td><%= model.getDescription() %></td>
</tr>
<% } %>
</table>
<br><br><br>
<% } %>
<table id="navigationtable" width="75%">
<tr>
<td align="center"><b>
<a href="#Roles"><%= Messages.doc_heading_roles %></a></b></td>
<td align="center"><b>
<a href="#Applications"><%= Messages.doc_heading_applications %></a></b></td>
<td align="center"><b>
<a href="#Data"><%= Messages.doc_heading_data %></a></b></td>
<td align="center"><b>
<a href="#Processes"><%= Messages.doc_heading_processes %></a></b></td>
</tr>
</table>
<br><br>
<!-- Headline of this section -->
<table id="heading" width="95%" >
<tr>
<td width="7%"><hr color="#000000" align="right" size="1"></td>
<td width="10%" align="center">
<b><a name="Roles"><%= Messages.doc_heading_roles %></a></b>
</td>
<td width="83%"><hr color="#000000" size="1"></td>
</tr>
</table>
<br><br>
<% for (Iterator i = roles.iterator(); i.hasNext();) {
Role role = (Role)i.next(); %>
<table id="scopetable" width="90%">
<tr>
<td>
<table id="contentheadingtable" width="100%">
<tr>
<td><p align="left"><b><%=role.getName() %></b></p></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table id="contenttable" width="100%">
<tr>
<td width="15%"><b><%= PluginProperties.getString("model_PackageableElement_package_name") %>: </b></td>
<td><%= role.getPackage().getName() %></td>
</tr>
</table>
</td>
</tr>
<% List pB = role.getPerformedBy();
if (!pB.isEmpty()) { %>
<tr>
<td>
<table id="contenttable" width="100%">
<tr>
<td width="15%"><b><%= PluginProperties.getString("model_Role_performedBy_name") %>: </b></td>
<td><% for (int j = 0; j < pB.size(); j++) {
OrganisationUnit unit = (OrganisationUnit)pB.get(j); %>
<%= unit.getName() %>
<% if (j < pB.size()-1) { %>, <% } %>
</td>
<% } %>
</tr>
</table>
</td>
</tr>
<% } %>
<% List comments = role.getOwnedComment();
if (!comments.isEmpty()) { %>
<tr>
<td>
<table id="contenttable" width="100%">
<tr>
<td width="15%"><b><%= PluginProperties.getString("model_ModelElement_ownedComment_name") %>: </b></td>
<td>
<% for (Iterator k = comments.iterator(); k.hasNext();) {
Comment com = (Comment)k.next(); %>
<%= com.getText() %>
<% } %>
</td>
</tr>
</table>
</td>
</tr>
<% } %>
</table> <!-- end of this role -->
<br><br>
<% } %>
<!-- Headline of this section -->
<br><br>
<table id="heading" width="95%" >
<tr>
<td width="7%"><hr color="#000000" align="right" size="1"></td>
<td width="10%" align="center">
<b><a name="Applications"><%= Messages.doc_heading_applications %></a></b>
</td>
<td width="83%"><hr color="#000000" size="1"></td>
</tr>
</table>
<br><br>
<% for (Iterator i = applications.iterator(); i.hasNext();) {
Application app = (Application)i.next(); %>
<table id="scopetable" width="90%">
<tr>
<td>
<table id="contentheadingtable" width="100%">
<tr>
<td><p align="left"><b><%=app.getName() %></b></p></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table id="contenttable" width="100%">
<tr>
<td width="15%"><b><%= PluginProperties.getString("model_PackageableElement_package_name") %>: </b></td>
<td><%= app.getPackage().getName() %></td>
</tr>
</table>
</td>
</tr>
<% if (app.getType() != null) { %>
<tr>
<td>
<table id="contenttable" width="100%">
<tr>
<td width="15%"><b><%= PluginProperties.getString("model_Application_type_name") %>: </b></td>
<td><%= app.getType().getName() %></td>
</tr>
</table>
</td>
</tr>
<% } %>
<% if (app.getJarArchive() != "" && app.getJarArchive() != null) { %>
<tr>
<td>
<table id="contenttable" width="100%">
<tr>
<td width="15%"><b><%= PluginProperties.getString("model_Application_jarArchive_name") %>: </b></td>
<td><%= app.getJarArchive() %></td>
</tr>
</table>
</td>
</tr>
<% } %>
<tr>
<td>
<table id="contenttable" width="100%">
<tr>
<td width="15%"><b><%= PluginProperties.getString("model_Application_javaClass_name") %>: </b></td>
<td><%= app.getJavaClass() %></td>
</tr>
</table>
</td>
</tr>
<% if (app.getMethod() != "" && app.getMethod() != null) { %>
<tr>
<td>
<table id="contenttable" width="100%">
<tr>
<td width="15%"><b><%= PluginProperties.getString("model_Application_method_name") %>: </b></td>
<td><%= app.getMethod() %></td>
</tr>
</table>
</td>
</tr>
<% } %>
<% List input = app.getInput();
if (!input.isEmpty()) { %>
<tr>
<td>
<table id="contenttable" width="100%">
<tr>
<td width="15%"><b><%= PluginProperties.getString("model_Application_input_name") %>: </b></td>
<td>
<% for (int j = 0; j < input.size(); j++) {
InputParameter iparam = (InputParameter)input.get(j);%>
<%= iparam.getName() %>: <%= iparam.getValue() %><% if (j < input.size()-1) { %>, <% } %></td><% } %>
</tr>
</table>
</td>
</tr>
<% } %>
<% List output = app.getOutput();
if (!output.isEmpty()) { %>
<tr>
<td>
<table id="contenttable" width="100%">
<tr>
<td width="15%"><b><%= PluginProperties.getString("model_Application_output_name") %>: </b></td>
<td>
<% for (int k = 0; k < output.size(); k++) {
OutputParameter oparam = (OutputParameter)output.get(k);%>
<%= oparam.getName() %>: <%= oparam.getValue() %><% if (k < output.size()-1) { %>, <% } %></td><% } %>
</tr>
</table>
</td>
</tr>
<% } %>
<% List comments = app.getOwnedComment();
if (!comments.isEmpty()) { %>
<tr>
<td>
<table id="contenttable" width="100%">
<tr>
<td width="15%"><b><%= PluginProperties.getString("model_ModelElement_ownedComment_name") %>: </b></td>
<td>
<% for (Iterator k = comments.iterator(); k.hasNext();) {
Comment com = (Comment)k.next(); %>
<%= com.getText() %>
<% } %>
</td>
</tr>
</table>
</td>
</tr>
<% } %>
</table> <!-- end of this application -->
<br><br>
<% } %>
<!-- Headline of this section -->
<br><br>
<table id="heading" width="95%" >
<tr>
<td width="7%"><hr color="#000000" align="right" size="1"></td>
<td width="10%" align="center">
<b><a name="Data"><%= Messages.doc_heading_data %></a></b>
</td>
<td width="83%"><hr color="#000000" size="1"></td>
</tr>
</table>
<!-- ENDE �berschrift der Sektion -->
<br><br>
<% for (Iterator i = datas.iterator(); i.hasNext();) {
Data data = (Data)i.next(); %>
<table id="scopetable" width="90%">
<tr>
<td>
<table id="contentheadingtable" width="100%">
<tr>
<td><p align="left"><b><%=data.getName() %></b></p></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table id="contenttable" width="100%">
<tr>
<td width="15%"><b><%= PluginProperties.getString("model_PackageableElement_package_name") %>: </b></td>
<td><%= data.getPackage().getName() %></td>
</tr>
</table>
</td>
</tr>
<% if (data.getValue() != "" && data.getValue() != null) { %>
<tr>
<td>
<table id="contenttable" width="100%">
<tr>
<td width="15%"><b><%= PluginProperties.getString("model_Data_value_name") %>: </b></td>
<td><%= data.getValue() %></td>
</tr>
</table>
</td>
</tr>
<% } %>
<tr>
<td>
<table id="contenttable" width="100%">
<tr>
<td width="15%"><b><%= PluginProperties.getString("model_Data_dataType_name") %>: </b></td>
<td><% if (data.getDataType() != null) { %><%= data.getDataType().getName() %><% } %></td>
</tr>
</table>
</td>
</tr>
<% if (data.getInformationType() != null) { %>
<tr>
<td>
<table id="contenttable" width="100%">
<tr>
<td width="15%"><b><%= PluginProperties.getString("model_Data_informationType_name") %>: </b></td>
<td><%= data.getInformationType().getName() %></td>
</tr>
</table>
</td>
</tr>
<% } %>
<% List parameter = data.getParameters(); if (!parameter.isEmpty()) { %>
<tr>
<td>
<table id="contenttable" width="100%">
<tr>
<td width="15%"><b><%= PluginProperties.getString("model_Data_parameters_name") %>: </b></td>
<td>
<% for (int j = 0; j < parameter.size(); j++) {
Parameter param = (Parameter)parameter.get(j); %>
<%= param.getName() %>: <%= param.getValue() %><% if (j < parameter.size()-1) { %>, <% } %></td><% } %>
</tr>
</table>
</td>
</tr>
<% } %>
<% List comments = data.getOwnedComment();
if (!comments.isEmpty()) { %>
<tr>
<td>
<table id="contenttable" width="100%">
<tr>
<td width="15%"><b><%= PluginProperties.getString("model_ModelElement_ownedComment_name") %>: </b></td>
<td>
<% for (Iterator k = comments.iterator(); k.hasNext();) {
Comment com = (Comment)k.next(); %>
<%= com.getText() %>
<% } %>
</td>
</tr>
</table>
</td>
</tr>
<% } %>
</table> <!-- end of this data -->
<br><br>
<% } %>
<!-- Headline of this section -->
<br><br>
<table id="heading" width="95%" >
<tr>
<td width="7%"><hr color="#000000" align="right" size="1"></td>
<td width="10%" align="center">
<b><a name="Processes"><%= Messages.doc_heading_processes %></a></b>
</td>
<td width="83%"><hr color="#000000" size="1"></td>
</tr>
</table>
<br><br>
<% for (Iterator i = processes.iterator(); i.hasNext();) {
Activity process = (Activity)i.next(); %>
<table id="scopetable" width="90%">
<tr>
<td>
<table id="contentheadingtable" width="100%">
<tr>
<td><p align="left"><b><%=process.getName() %></b></p></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table id="contenttable" width="100%">
<tr>
<td width="15%"><b><%= PluginProperties.getString("model_PackageableElement_package_name") %>: </b></td>
<td><%= process.getPackage().getName() %></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table id="contenttable" width="100%">
<tr>
<td width="15%"><b><%= PluginProperties.getString("model_Activity_totalexecutiontime_name") %>: </b></td>
<td><%= process.getTotalexecutiontime() %></td>
</tr>
</table>
</td>
</tr>
<% if (process.getEventHandler() != null) {%>
<tr>
<td>
<table id="contenttable" width="100%">
<tr>
<td width="15%"><b><%= PluginProperties.getString("model_Activity_eventHandler_name") %>: </b></td>
<td><%= process.getEventHandler().getName() %></td>
</tr>
</table>
</td>
</tr>
<% } %>
<% List comments = process.getOwnedComment();
if (!comments.isEmpty()) { %>
<tr>
<td>
<table id="contenttable" width="100%">
<tr>
<td width="15%"><b><%= PluginProperties.getString("model_ModelElement_ownedComment_name") %>: </b></td>
<td>
<% for (Iterator k = comments.iterator(); k.hasNext();) {
Comment com = (Comment)k.next(); %>
<%= com.getText() %>
<% } %>
</td>
</tr>
</table>
</td>
</tr>
<% } %>
<tr>
<td>
<table id="contenttable" width="100%">
<tr>
<td><img src=process<%= ++counter %>.jpg></img>
</td>
</tr>
</table>
</td>
</tr>
</table> <!-- end of this process -->
<br><br>
<% } %>
</td> <!-- end of great content table -->
<td width="1" bgcolor="#000000"></td> <!-- right line -->
</tr>
<tr> <!-- bottom line -->
<td width="1" height="1" bgcolor="#000000"></td>
<td height="1" bgcolor="#000000"></td>
<td width="1" height="1" bgcolor="#000000"></td>
</tr>
</table> <!-- END outer table->
</center>
<br>
</body>
</html>