net.sf.ant4eclipse.model.pdesupport.plugin
Class PluginManifestParser

java.lang.Object
  extended by net.sf.ant4eclipse.model.pdesupport.plugin.PluginManifestParser

public class PluginManifestParser
extends java.lang.Object

Parser for plugin manifest files.


Constructor Summary
PluginManifestParser()
           
 
Method Summary
static PluginDescriptor parseFragment(PluginDescriptor descriptor, java.io.File file)
          Parses the content of a fragment file.
static PluginDescriptor parseFragment(PluginDescriptor descriptor, java.io.InputStream inputStream)
          Parses the content of a fragment description.
static PluginDescriptor parsePlugin(PluginDescriptor descriptor, java.io.File file)
          Parses the content of a plugin description.
static PluginDescriptor parsePlugin(PluginDescriptor descriptor, java.io.InputStream inputStream)
          Parses the content of a plugin description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginManifestParser

public PluginManifestParser()
Method Detail

parseFragment

public static PluginDescriptor parseFragment(PluginDescriptor descriptor,
                                             java.io.File file)
                                      throws FileParserException
Parses the content of a fragment file.

Parameters:
descriptor - The PluginDescriptor instance which will receive the parsed information.
file - The fragment file.
Returns:
The descriptor with the filled information.
Throws:
FileParserException - Parsing failed for some reason.

parsePlugin

public static PluginDescriptor parsePlugin(PluginDescriptor descriptor,
                                           java.io.File file)
                                    throws FileParserException
Parses the content of a plugin description.

Parameters:
descriptor - The descriptor used to collect the information.
file - The file providing the plugin description.
Returns:
The supplied descriptor.
Throws:
FileParserException - Loading the content failed for some reason.

parsePlugin

public static PluginDescriptor parsePlugin(PluginDescriptor descriptor,
                                           java.io.InputStream inputStream)
                                    throws FileParserException
Parses the content of a plugin description.

Parameters:
descriptor - The descriptor used to collect the information.
inputStream - The stream providing the plugin description.
Returns:
The supplied descriptor.
Throws:
FileParserException - Loading the content failed for some reason.

parseFragment

public static PluginDescriptor parseFragment(PluginDescriptor descriptor,
                                             java.io.InputStream inputStream)
                                      throws FileParserException
Parses the content of a fragment description.

Parameters:
descriptor - The descriptor used to collect the information.
inputStream - The stream providing the plugin description.
Returns:
The supplied descriptor.
Throws:
FileParserException - Loading the content failed for some reason.