Package org.graffiti.managers.pluginmgr
Class PluginXMLParser
java.lang.Object
org.graffiti.managers.pluginmgr.PluginXMLParser
public class PluginXMLParser extends Object
The XML parser for the plugin descriptions. The plugin description
(plugin.xml) file is validated by the plugin.dtd.
- Version:
- $Revision: 1.11 $
-
Field Summary
Fields Modifier and Type Field Description static StringPLUGIN_DTD_LOCALThe local plugin dtd.static StringPUBLIC_DTD_IDENTIFIERThe public identifier of the plugin dtd. -
Constructor Summary
Constructors Constructor Description PluginXMLParser()Constructs a new plugin xml parser instance. -
Method Summary
Modifier and Type Method Description PluginDescriptionparse(InputStream is)Parses the givenplugin.xmlfile.voidsetPluginDescription(PluginDescription description)Sets the internal temporary plugin description to the given value.voidvalidateDescription(PluginDescription description)Validates the given current plugin description.
-
Field Details
-
PUBLIC_DTD_IDENTIFIER
The public identifier of the plugin dtd. -
PLUGIN_DTD_LOCAL
The local plugin dtd.
-
-
Constructor Details
-
PluginXMLParser
public PluginXMLParser()Constructs a new plugin xml parser instance.
-
-
Method Details
-
setPluginDescription
Sets the internal temporary plugin description to the given value. This method is used by the xml parser only.- Parameters:
description- the new value.
-
parse
Parses the givenplugin.xmlfile.- Parameters:
is- input stream of theplugin.xmlfile.- Returns:
- an instance of plugin description, which contains the parsed information.
- Throws:
IOException- DOCUMENT ME!
-
validateDescription
Validates the given current plugin description.- Parameters:
description- the description to validate.- Throws:
SAXException- DOCUMENT ME!
-