|
Cytoscape 2.5.1 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcytoscape.plugin.PluginInfo
public class PluginInfo
Nested Class Summary | |
---|---|
class |
PluginInfo.AuthorInfo
Describes an author for a given plugin. |
static class |
PluginInfo.FileType
Jar and Zip files currently supported |
class |
PluginInfo.License
Fetches and keeps a plugin license if one is available. |
Constructor Summary | |
---|---|
PluginInfo()
Initializes a PluginInfo object with the following defaults: setName("Unknown"); setDescription("No pluginDescription"); setPluginVersion("0.1"); setCytoscapeVersion( cytoscape.cytoscapeVersion.version ); setCategory("Uncategorized"); setProjectUrl(CytoscapeInit.getProperties().getProperty("defaultPluginUrl")); |
|
PluginInfo(String UniqueID)
See PluginInfo() |
Method Summary | |
---|---|
void |
addAuthor(String authorName,
String institution)
Adds an author to the list of authors. |
void |
clearAuthorList()
Clears author list. |
List<PluginInfo.AuthorInfo> |
getAuthors()
|
String |
getCategory()
|
String |
getCytoscapeVersion()
|
String |
getDescription()
|
String |
getDownloadUrl()
|
List<String> |
getFileList()
|
PluginInfo.FileType |
getFileType()
|
String |
getID()
|
String |
getInstallLocation()
|
String |
getLicenseText()
|
String |
getName()
|
String |
getPluginClassName()
|
File |
getPluginDirectory()
Gets the full install path for this plugin. |
String |
getPluginVersion()
|
String |
getProjectUrl()
|
String |
getReleaseDate()
|
String |
getUrl()
|
String |
htmlOutput()
|
boolean |
isCytoscapeVersionCurrent()
|
boolean |
isLicenseRequired()
|
boolean |
isNewerPluginVersion(PluginInfo New)
Compare the version of the object to the given object. |
void |
setCategory(Category catName)
Sets the category for the plugin using the enum PluginInfo.Category |
void |
setCategory(String category)
Sets a category for the plugin. |
void |
setCytoscapeVersion(String version)
Sets the Cytoscape version this plugin is compatible with. |
void |
setDescription(String description)
Sets a description of the plugin. |
void |
setLicense(String licenseText,
boolean alwaysRequired)
Sets the license information for the plugin. |
void |
setLicense(URL url)
Sets the license information for the plugin. |
void |
setName(String name)
Sets name of plugin. |
void |
setPluginVersion(double Version)
Sets the version of the plugin. |
void |
setProjectUrl(String url)
Sets the url of a site describing this plugin project |
void |
setReleaseDate(String date)
Sets the release date of a plugin. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PluginInfo()
public PluginInfo(String UniqueID)
UniqueID
- Additionally this sets the unique identifier that will be used
to find a new version of the plugin at the given project url.Method Detail |
---|
public void setName(String name)
name
- public void setReleaseDate(String date)
date
- public void setDescription(String description)
description
- public void setPluginVersion(double Version) throws NumberFormatException
version
- String version with format \d+.\d+
NumberFormatException
- If the string version is of a format other than \d+.\d+public void setCytoscapeVersion(String version) throws NumberFormatException
version
-
NumberFormatException
public void setProjectUrl(String url)
url
- public void setCategory(String category)
category
- public void setCategory(Category catName)
catName
- public void addAuthor(String authorName, String institution)
authorName
- institution
- public void clearAuthorList()
public void setLicense(URL url)
java.net.URL
- object where license can be downloaded from.public void setLicense(String licenseText, boolean alwaysRequired)
Text
- string of license.alwaysRequired
- If the user expects the license to be required for both
install and update at all times (true) or only at install
(false)public File getPluginDirectory()
public String getInstallLocation()
public String getReleaseDate()
public String getLicenseText()
public boolean isLicenseRequired()
public String getID()
public PluginInfo.FileType getFileType()
public String getName()
public String getPluginClassName()
public List<PluginInfo.AuthorInfo> getAuthors()
public String getDescription()
public String getPluginVersion()
public String getCytoscapeVersion()
public String getUrl()
public String getProjectUrl()
public String getDownloadUrl()
public String getCategory()
public List<String> getFileList()
public String toString()
toString
in class Object
public boolean isNewerPluginVersion(PluginInfo New)
New
- Potentially newer PluginInfo object
public boolean isCytoscapeVersionCurrent()
public String htmlOutput()
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |