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 Details

    • PUBLIC_DTD_IDENTIFIER

      public static String PUBLIC_DTD_IDENTIFIER
      The public identifier of the plugin dtd.
    • PLUGIN_DTD_LOCAL

      public static String PLUGIN_DTD_LOCAL
      The local plugin dtd.
  • Constructor Details

    • PluginXMLParser

      public PluginXMLParser()
      Constructs a new plugin xml parser instance.
  • Method Details

    • setPluginDescription

      public void setPluginDescription​(PluginDescription description)
      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

      public PluginDescription parse​(InputStream is) throws IOException
      Parses the given plugin.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

      public void validateDescription​(PluginDescription description) throws SAXException
      Validates the given current plugin description.
      Parameters:
      description - the description to validate.
      Throws:
      SAXException - DOCUMENT ME!