|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ka2ddo.yaac.gui.pluginstore.PluginDescriptor
public class PluginDescriptor
This class describes the parameters for one plugin, including its filename, its display name, the version of it currently installed (if any), and the version available in the "store" (if any) or the mark indicating the plugin is obsoleted.
Field Summary | |
---|---|
java.lang.String |
displayName
The human-readable name of the plugin, as reported by the getName()
method. |
java.lang.String |
installedVersion
The human-readable version identifier for the installed version of the plugin, or null if this plugin is not yet installed into the local copy of YAAC. |
java.lang.String |
pkgName
The internal distro file name of the plugin. |
java.lang.String |
storeType
The means by which the plugin is distributed from the website, or null if this plugin is not currently available from the website. |
java.lang.String |
storeVersion
The human-readable version identifier for the version of the plugin currently available on the author's website, or null if this plugin is not available from the website. |
Constructor Summary | |
---|---|
PluginDescriptor(Provider p)
Create a PluginDescriptor from an installed plugin instance. |
|
PluginDescriptor(java.lang.String storeLine)
Create a PluginDescriptor from a comma-separated-values (CSV) record obtained from the author's website. |
Method Summary | |
---|---|
int |
compareTo(PluginDescriptor o)
Compares this object with the specified PluginDescriptor for order. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
int |
hashCode()
Returns a hash code value for the object. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String pkgName
public java.lang.String displayName
getName()
method.
public java.lang.String installedVersion
public java.lang.String storeVersion
public java.lang.String storeType
Constructor Detail |
---|
public PluginDescriptor(Provider p)
p
- Provider object defining the plugin's attributespublic PluginDescriptor(java.lang.String storeLine)
package_name,version,distro format,description of what the plugin provides
storeLine
- CSV record to decodeMethod Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.
true
if this object is the same as the obj
argument; false
otherwise.hashCode()
,
HashMap
public int hashCode()
hashCode
in class java.lang.Object
equals(Object)
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(PluginDescriptor o)
compareTo
in interface java.lang.Comparable<PluginDescriptor>
o
- the object to be compared.
java.lang.NullPointerException
- if the specified object is null
java.lang.ClassCastException
- if the specified object's type prevents it
from being compared to this object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |