|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cytoscape.plugin.DownloadableInfo
public abstract class DownloadableInfo
Nested Class Summary | |
---|---|
protected class |
DownloadableInfo.License
Fetches and keeps a plugin license if one is available. |
Field Summary | |
---|---|
protected String |
versionMatch
|
protected String |
versionSplit
|
Constructor Summary | |
---|---|
DownloadableInfo()
|
|
DownloadableInfo(String id)
|
|
DownloadableInfo(String id,
DownloadableInfo parentObj)
|
Method Summary | |
---|---|
void |
addCytoscapeVersion(String cyVersion)
Contains a list of all the Cytoscape versions this object is compatible with. |
protected String |
basicHtmlOutput()
|
protected boolean |
containsVersion(String cyVersion)
|
boolean |
equals(Object Obj)
Compare the two info objects. |
boolean |
equalsDifferentObjectVersion(Object Obj)
Compares the ID and download URL of the two objects. |
String |
getCategory()
|
String |
getCytoscapeVersion()
|
List<String> |
getCytoscapeVersions()
|
String |
getDescription()
|
String |
getDownloadableURL()
|
String |
getID()
|
abstract Installable |
getInstallable()
|
String |
getLicenseText()
|
String |
getName()
|
String |
getObjectUrl()
|
String |
getObjectVersion()
|
DownloadableInfo |
getParent()
|
String |
getReleaseDate()
|
abstract DownloadableType |
getType()
Return the downloadable type of this object. |
abstract String |
htmlOutput()
|
boolean |
isLicenseRequired()
|
boolean |
isNewerObjectVersion(DownloadableInfo New)
Compare the version of the object to the given object. |
boolean |
isPluginCompatibleWithCurrent()
|
void |
setCategory(Category cat)
|
void |
setCategory(String Category)
|
void |
setDescription(String description)
|
void |
setDownloadableURL(String url)
|
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)
|
void |
setObjectUrl(String url)
|
void |
setObjectVersion(double objVersion)
|
void |
setParent(DownloadableInfo parentObj)
|
void |
setReleaseDate(String date)
TODO - would probably be better to use a date object |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String versionMatch
protected String versionSplit
Constructor Detail |
---|
public DownloadableInfo()
public DownloadableInfo(String id)
public DownloadableInfo(String id, DownloadableInfo parentObj)
Method Detail |
---|
public void setLicense(URL url)
url
- object where license can be downloaded from.public void setLicense(String licenseText, boolean alwaysRequired)
licenseText
- 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 void setCategory(String Category)
Category
- Sets the category of the downloadable object.public void setCategory(Category cat)
public void setParent(DownloadableInfo parentObj)
public void setName(String name)
name
- Sets the name of the downloadable object.public void setDescription(String description)
description
- Sets the descriptoin of the downloadable object.public void setDownloadableURL(String url)
url
- Sets the URL for the xml file describing all downloadable
objects from any given project. (ex.
http://cytoscape.org/plugins/plugin.xml)public void setObjectUrl(String url)
url
- Set the URL where this object can be downloaded from.public void addCytoscapeVersion(String cyVersion) throws NumberFormatException
cyVersion
-
NumberFormatException
public void setObjectVersion(double objVersion) throws NumberFormatException
objVersion
- Sets the version of this object.
NumberFormatException
public void setReleaseDate(String date)
date
- Sets the release date of this object.public String getLicenseText()
public boolean isLicenseRequired()
public abstract Installable getInstallable()
public abstract DownloadableType getType()
public DownloadableInfo getParent()
public String getObjectUrl()
public String getCategory()
public String getDownloadableURL()
public String getObjectVersion()
public String getName()
public String getDescription()
public String getCytoscapeVersion()
public List<String> getCytoscapeVersions()
protected boolean containsVersion(String cyVersion)
public String getReleaseDate()
public String getID()
public boolean isNewerObjectVersion(DownloadableInfo New)
New
- Potentially newer DownloadableInfo object
public boolean isPluginCompatibleWithCurrent()
public boolean equals(Object Obj)
equals
in class Object
public boolean equalsDifferentObjectVersion(Object Obj)
Obj
-
public String toString()
toString
in class Object
public abstract String htmlOutput()
protected String basicHtmlOutput()
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |