public class PluginDescriptor extends java.lang.Object implements java.lang.Comparable<PluginDescriptor>, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
displayName
The human-readable name of the plugin, as reported by the
getInfo()
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 and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public java.lang.String pkgName
public java.lang.String displayName
getInfo()
method.public java.lang.String installedVersion
public java.lang.String storeVersion
public java.lang.String storeType
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 decodepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the reference object with which to compare.true if this object is the same as the obj
argument; false otherwise.hashCode(),
HashMappublic int hashCode()
hashCode in class java.lang.Objectequals(Object)public java.lang.String toString()
toString in class java.lang.Objectpublic 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 nulljava.lang.ClassCastException - if the specified object's type prevents it
from being compared to this object.