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 String
PLUGIN_DTD_LOCAL
The local plugin dtd.static String
PUBLIC_DTD_IDENTIFIER
The 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 PluginDescription
parse(InputStream is)
Parses the givenplugin.xml
file.void
setPluginDescription(PluginDescription description)
Sets the internal temporary plugin description to the given value.void
validateDescription(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.xml
file.- Parameters:
is
- input stream of theplugin.xml
file.- 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!
-