Package org.graffiti.managers.pluginmgr
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 Summary
Constructors Constructor Description PluginDescription()
Constructs an empty plugin description, -
Method Summary
Modifier and Type Method Description void
addChild(PluginEntry plugin)
void
addDependency(PluginDependency dep)
Adds the given dependency to the list of dependencies.void
addPluginDependency(PluginDependency dep)
Adds the given plugin dependency to the list of dependencies.String
getAuthor()
Returns the author.String
getAvailable()
Returns the available.Collection<PluginEntry>
getChildPlugins()
String
getCompatibleVersion()
Returns the version for compatibility.List<PluginDependency>
getDependencies()
Returns the dependencies.String
getDescription()
Returns the description.RSSfeedDefinition
getFeed()
String
getMain()
Returns the main.String
getName()
Returns the name.Iterator<PluginDependency>
getPluginDependenciesIterator()
Returns an iterator over the plugin dependency list.String
getVersion()
Returns the version.boolean
hasRSSfeedDefined()
boolean
isAddon()
boolean
isOptional()
boolean
isOptionalDefaultTrue()
boolean
isPriorityPlugin()
void
setAddon(boolean isAddon)
void
setAuthor(String author)
Sets the author.void
setAvailable(String available)
Sets the available.void
setCompatibleVersion(String v)
Sets the version for compatibility.void
setDependencies(List<PluginDependency> dependencies)
Sets the dependencies.void
setDescription(String description)
Sets the description.void
setIsOptional(String optional)
void
setIsOptionalDefaultTrue(String optionalDefaultValue)
void
setIsPriorityPlugin(String priority)
void
setMain(String main)
Sets the main.void
setName(String name)
Sets the name.void
setRSSfeedName(String name)
void
setRSSfeedURL(String url)
void
setVersion(String version)
Sets the version.String
toString()
Returns a human readable string representation of this object.
-
Constructor Details
-
PluginDescription
public PluginDescription()Constructs an empty plugin description,
-
-
Method Details
-
setAuthor
Sets the author.- Parameters:
author
- The author to set
-
getAuthor
Returns the author.- Returns:
- String
-
setAvailable
Sets the available.- Parameters:
available
- The available to set
-
getAvailable
Returns the available.- Returns:
- String
-
setDependencies
Sets the dependencies.- Parameters:
dependencies
- The dependencies to set
-
getDependencies
Returns the dependencies.- Returns:
- List
-
setDescription
Sets the description.- Parameters:
description
- The description to set
-
getDescription
Returns the description.- Returns:
- String
-
setMain
Sets the main.- Parameters:
main
- The main to set
-
getMain
Returns the main.- Returns:
- String
-
setName
Sets the name.- Parameters:
name
- The name to set
-
getName
Returns the name.- Returns:
- String
-
getPluginDependenciesIterator
Returns an iterator over the plugin dependency list.- Returns:
- an iterator over the plugin dependency list.
-
setVersion
Sets the version.- Parameters:
version
- The version to set
-
getVersion
Returns the version.- Returns:
- Version
-
setCompatibleVersion
Sets the version for compatibility.- Parameters:
version
- The version to set
-
getCompatibleVersion
Returns the version for compatibility.- Returns:
- Version
-
addDependency
Adds the given dependency to the list of dependencies.- Parameters:
dep
- the dependency to add to the list of dependent plugins.
-
addPluginDependency
Adds the given plugin dependency to the list of dependencies.- Parameters:
dep
- the dependency to add to the list.
-
toString
Returns a human readable string representation of this object. -
isAddon
public boolean isAddon() -
setAddon
public void setAddon(boolean isAddon) -
addChild
-
getChildPlugins
-
setIsOptional
-
isOptional
public boolean isOptional() -
setIsOptionalDefaultTrue
-
isOptionalDefaultTrue
public boolean isOptionalDefaultTrue() -
isPriorityPlugin
public boolean isPriorityPlugin() -
setIsPriorityPlugin
-
hasRSSfeedDefined
public boolean hasRSSfeedDefined() -
getFeed
- Returns:
- Null, if no feed is defined.
-
setRSSfeedName
-
setRSSfeedURL
-