sharpster.common
Interface PartOfFilePlugin


public interface PartOfFilePlugin

An interface which should be implemented by all types of pluginData classes.


Method Summary
 sharpster.common.ResponseCollection extractParts(sharpster.common.SharedFile originalFile, java.lang.String role)
          Extract the shared parts from a file collection.
 java.lang.String getPluginDescription()
          Retrns a description of this plug-in.
 java.lang.String getPluginName()
          Returns the name of the plug-in which has created this data.
 sharpster.common.ResponseCollection mergeParts(sharpster.common.SharedFile originalFile, sharpster.common.SharedFile partOfFile, java.lang.String role)
          Merge the shared parts with the entire files.
 sharpster.common.PluginData parseArguments(java.util.LinkedList args)
          Parse a commandline argument and convert it to a specific plugin data.
 

Method Detail

getPluginName

public java.lang.String getPluginName()
Returns the name of the plug-in which has created this data.


getPluginDescription

public java.lang.String getPluginDescription()
Retrns a description of this plug-in.


parseArguments

public sharpster.common.PluginData parseArguments(java.util.LinkedList args)
Parse a commandline argument and convert it to a specific plugin data.


extractParts

public sharpster.common.ResponseCollection extractParts(sharpster.common.SharedFile originalFile,
                                                        java.lang.String role)
Extract the shared parts from a file collection.


mergeParts

public sharpster.common.ResponseCollection mergeParts(sharpster.common.SharedFile originalFile,
                                                      sharpster.common.SharedFile partOfFile,
                                                      java.lang.String role)
Merge the shared parts with the entire files.