blob: 3e30172ba67b085bb46ec45ee0661a4bd0e57a1b [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<STYLE type="text/css">
div.dtd-fragment {
width: 100%;
border: none;
background-color: #eee;
}
</STYLE>
</HEAD>
<BODY>
<H1><CENTER>Sample Parsers</CENTER></H1>
<b><i>Identifier: </i></b>com.example.xyz.parsers<p>
<b><i>Since: </i></b>2.1<p>
<b><i>Description: </i></b>This extension point is used to plug in additional parsers. The parsers actually do not work - we have just used them as an example of extension point schema. <p><b><i>Configuration Markup:</i></b><p>
<p><samp><font color="#800000">&nbsp;&nbsp; &lt;!ELEMENT <a name="e.extension">extension</a> (<a href="#e.parser">parser</a>*)&gt;</font></samp>
<br><br><samp><font color="#800000">&nbsp;&nbsp; &lt;!ATTLIST extension</samp>
<br><samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;point&nbsp;CDATA #REQUIRED</samp>
<br><samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED</samp>
<br><samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name&nbsp;&nbsp;CDATA #IMPLIED</samp>
<br><samp>&nbsp;&nbsp; &gt;</font></samp>
<ul>
</ul>
<p><samp><font color="#800000">&nbsp;&nbsp; &lt;!ELEMENT <a name="e.parser">parser</a> EMPTY&gt;</font></samp>
<br><br><samp><font color="#800000">&nbsp;&nbsp; &lt;!ATTLIST parser</samp>
<br><samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED</samp>
<br><samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name&nbsp;&nbsp;CDATA #REQUIRED</samp>
<br><samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;class&nbsp;CDATA #REQUIRED</samp>
<br><samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mode&nbsp;&nbsp;(never|always|manual) "always"</samp>
<br><samp>&nbsp;&nbsp; &gt;</font></samp>
<ul>
<li><b>id</b> - a unique name that will be used to reference this parser.
</li>
<li><b>name</b> - a translatable name that will be used for presenting this parser in the UI.
</li>
<li><b>class</b> - a fully qualified name of the Java class that implements <samp>com.example.xyz.IParser</samp> interface.</li>
<li><b>mode</b> - an optional flag that indicates how often this parser instance will run (default is <samp>always</samp>).
</li>
</ul>
<b><i>Examples: </i></b>The following is an example of the extension point usage:
<pre>
<font color="#000080">&lt;extension point=<font color="#008000">&quot;com.example.xyz.parsers&quot;</font>&gt;</font>
<font color="#000080">&lt;parser
id=<font color="#008000">&quot;com.example.xyz.parser1&quot;</font>
name=<font color="#008000">&quot;Sample Parser 1&quot;</font>
class=<font color="#008000">&quot;com.example.xyz.SampleParser1&quot;</font>&gt;</font>
<font color="#000080">&lt;/parser&gt;</font>
<font color="#000080">&lt;/extension&gt;</font>
</pre><p>
<b><i>API Information: </i></b>Plug-ins that want to extend this extension point must implement <samp>com.example.xyz.IParser</samp> interface. <p>
<b><i>Supplied Implementation: </i></b>XYZ Plug-in provides default implementation of the parser. <p>
<font size="-1" color="#336699">
Copyright XYZ 2003. All rights reserved.<p>
</font>
</BODY>
</HTML>