<?xml version='1.0' encoding='UTF-8'?> | |
<!-- Schema file written by PDE --> | |
<schema targetNamespace="org.eclipse.mat.api" xmlns="http://www.w3.org/2001/XMLSchema"> | |
<annotation> | |
<appInfo> | |
<meta.schema plugin="org.eclipse.mat.api" id="renderer" name="Query Result Renderer"/> | |
</appInfo> | |
<documentation> | |
The Memory Analyzer report generator utilizes the renderer to create | |
a textual representation of the query results, e.g. the table, | |
trees, histograms, etc. Out of the box, HTML and CSV are supported. | |
This is the extension point to add an alternative renderer. | |
</documentation> | |
</annotation> | |
<element name="extension"> | |
<annotation> | |
<appInfo> | |
<meta.element /> | |
</appInfo> | |
</annotation> | |
<complexType> | |
<sequence minOccurs="1" maxOccurs="unbounded"> | |
<element ref="renderer"/> | |
</sequence> | |
<attribute name="point" type="string" use="required"> | |
<annotation> | |
<documentation> | |
</documentation> | |
</annotation> | |
</attribute> | |
<attribute name="id" type="string"> | |
<annotation> | |
<documentation> | |
</documentation> | |
</annotation> | |
</attribute> | |
<attribute name="name" type="string"> | |
<annotation> | |
<documentation> | |
</documentation> | |
<appInfo> | |
<meta.attribute translatable="true"/> | |
</appInfo> | |
</annotation> | |
</attribute> | |
</complexType> | |
</element> | |
<element name="renderer"> | |
<complexType> | |
<attribute name="impl" type="string" use="required"> | |
<annotation> | |
<documentation> | |
implementor of <a href="org/eclipse/mat/report/IOutputter.html"><samp>org.eclipse.mat.report.IOutputter</samp></a>. | |
</documentation> | |
<appInfo> | |
<meta.attribute kind="java" basedOn=":org.eclipse.mat.report.IOutputter"/> | |
</appInfo> | |
</annotation> | |
</attribute> | |
</complexType> | |
</element> | |
<annotation> | |
<appInfo> | |
<meta.section type="since"/> | |
</appInfo> | |
<documentation> | |
0.7.0 | |
</documentation> | |
</annotation> | |
<annotation> | |
<appInfo> | |
<meta.section type="examples"/> | |
</appInfo> | |
<documentation> | |
Following is an example of a renderer declaration: | |
<p> | |
<pre> | |
<extension point="org.eclipse.mat.report.renderer"> | |
<renderer impl="org.eclipse.mat.report.internal.CsvRenderer" /> | |
</extension> | |
</pre> | |
</p> | |
The renderer must implement <samp>org.eclipse.mat.report.IOutputter</samp>. | |
The <samp>@Renderer</samp> annotation declares the target format and, | |
optionally, the applicable result type. | |
<p> | |
<pre> | |
@Renderer(target = "csv", result = IResult.class) | |
public class CsvRenderer implements IOutputter | |
{ | |
[...] | |
} | |
</pre> | |
</p> | |
In the report, use the "format" parameter to specify the output format: | |
<p> | |
<pre> | |
<query name="Class Histogram"> | |
<param key="format" value="csv" /> | |
<command>histogram</command> | |
</query> | |
</pre> | |
</p> | |
</documentation> | |
</annotation> | |
<annotation> | |
<appInfo> | |
<meta.section type="implementation"/> | |
</appInfo> | |
<documentation> | |
The Memory Analyzer supplies two renderers: one for HTML, one for CSV (comma separated values). | |
</documentation> | |
</annotation> | |
<annotation> | |
<appInfo> | |
<meta.section type="copyright"/> | |
</appInfo> | |
<documentation> | |
Copyright (c) 2008 SAP AG and others.<br> | |
All rights reserved. This program and the accompanying materials are made | |
available under the terms of the Eclipse Public License v1.0 which | |
accompanies this distribution, and is available at | |
<a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a> | |
</documentation> | |
</annotation> | |
<annotation> | |
<appInfo> | |
<meta.section type="apiInfo"/> | |
</appInfo> | |
<documentation> | |
The value of the impl attribute must represent an implementor of <samp>org.eclipse.mat.report.IOutputter</samp>. | |
</documentation> | |
</annotation> | |
</schema> |