Sample Parsers
Identifier
com.example.xyz.parsers
Description
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.
Markup
<!ELEMENT extension (parser*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA
#IMPLIED
name CDATA
#IMPLIED
>
<!ELEMENT parser (EMPTY)>
<!ATTLIST parser
id CDATA
#REQUIRED
name CDATA
#REQUIRED
class CDATA
#REQUIRED
mode (never|always|manual)
#IMPLIED
>
- id - a unique name that will be used to reference this parser.
- name - a translatable name that will be used for presenting this
parser in the UI.
- class - a fully qualified name of the Java class that implements
com.example.xyz.IParser interface.
- mode - an optional flag that indicates how often this parser
instance will run (default is always).
Example
The following is an example of the extension point usage:
<extension point="com.example.xyz.parsers">
<parser
id="com.example.xyz.parser1"
name="Sample Parser 1"
class="com.example.xyz.SampleParser1">
</parser>
</extension>
API Information
Plug-ins that want to extend this extension point must
implement com.example.xyz.IParser interface.
Supplied Implementation
XYZ Plug-in provides default implementation of
the parser.
