Sample Parsers Identifier:
com.example.xyz.parsersSince:
3.0
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.Configuration Markup:
<!ELEMENT extension EMPTY>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ATTLIST parser
id CDATA #REQUIRED
name CDATA #REQUIRED
class CDATA #REQUIRED
mode (manual|always|never) >
- 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).
Examples:
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 Plugin provides default implementation of the parser.
Copyright XYZ 2003. All rights reserved.