Sample Parsers

com.example.xyz.parsers

3.0

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.

<!ELEMENT extension EMPTY>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT parser (parser+)>

<!ATTLIST parser

id    CDATA #REQUIRED

name  CDATA #REQUIRED

class CDATA #REQUIRED

mode  (manual|always|never) >


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>

Plug-ins that want to extend this extension point must implement com.example.xyz.IParser interface.

XYZ Plugin provides default implementation of the parser.