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
   >

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.

Copyright IBM Corporation and
others 2000, 2002