Class PluginDescription

java.lang.Object
org.graffiti.managers.pluginmgr.PluginDescription

public class PluginDescription
extends Object
Contains a meta data of a plugin.
Version:
$Revision: 1.16 $
  • Constructor Details

    • PluginDescription

      public PluginDescription()
      Constructs an empty plugin description,
  • Method Details

    • setAuthor

      public void setAuthor​(String author)
      Sets the author.
      Parameters:
      author - The author to set
    • getAuthor

      public String getAuthor()
      Returns the author.
      Returns:
      String
    • setAvailable

      public void setAvailable​(String available)
      Sets the available.
      Parameters:
      available - The available to set
    • getAvailable

      public String getAvailable()
      Returns the available.
      Returns:
      String
    • setDependencies

      public void setDependencies​(List<PluginDependency> dependencies)
      Sets the dependencies.
      Parameters:
      dependencies - The dependencies to set
    • getDependencies

      public List<PluginDependency> getDependencies()
      Returns the dependencies.
      Returns:
      List
    • setDescription

      public void setDescription​(String description)
      Sets the description.
      Parameters:
      description - The description to set
    • getDescription

      public String getDescription()
      Returns the description.
      Returns:
      String
    • setMain

      public void setMain​(String main)
      Sets the main.
      Parameters:
      main - The main to set
    • getMain

      public String getMain()
      Returns the main.
      Returns:
      String
    • setName

      public void setName​(String name)
      Sets the name.
      Parameters:
      name - The name to set
    • getName

      public String getName()
      Returns the name.
      Returns:
      String
    • getPluginDependenciesIterator

      public Iterator<PluginDependency> getPluginDependenciesIterator()
      Returns an iterator over the plugin dependency list.
      Returns:
      an iterator over the plugin dependency list.
    • setVersion

      public void setVersion​(String version)
      Sets the version.
      Parameters:
      version - The version to set
    • getVersion

      public String getVersion()
      Returns the version.
      Returns:
      Version
    • setCompatibleVersion

      public void setCompatibleVersion​(String v)
      Sets the version for compatibility.
      Parameters:
      version - The version to set
    • getCompatibleVersion

      public String getCompatibleVersion()
      Returns the version for compatibility.
      Returns:
      Version
    • addDependency

      public void addDependency​(PluginDependency dep)
      Adds the given dependency to the list of dependencies.
      Parameters:
      dep - the dependency to add to the list of dependent plugins.
    • addPluginDependency

      public void addPluginDependency​(PluginDependency dep)
      Adds the given plugin dependency to the list of dependencies.
      Parameters:
      dep - the dependency to add to the list.
    • toString

      public String toString()
      Returns a human readable string representation of this object.
      Overrides:
      toString in class Object
      Returns:
      a human readable string representation of this object.
    • isAddon

      public boolean isAddon()
    • setAddon

      public void setAddon​(boolean isAddon)
    • addChild

      public void addChild​(PluginEntry plugin)
    • getChildPlugins

      public Collection<PluginEntry> getChildPlugins()
    • setIsOptional

      public void setIsOptional​(String optional)
    • isOptional

      public boolean isOptional()
    • setIsOptionalDefaultTrue

      public void setIsOptionalDefaultTrue​(String optionalDefaultValue)
    • isOptionalDefaultTrue

      public boolean isOptionalDefaultTrue()
    • isPriorityPlugin

      public boolean isPriorityPlugin()
    • setIsPriorityPlugin

      public void setIsPriorityPlugin​(String priority)
    • hasRSSfeedDefined

      public boolean hasRSSfeedDefined()
    • getFeed

      public RSSfeedDefinition getFeed()
      Returns:
      Null, if no feed is defined.
    • setRSSfeedName

      public void setRSSfeedName​(String name)
    • setRSSfeedURL

      public void setRSSfeedURL​(String url)