|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.pkg.PackageInfo
public class PackageInfo
This class serves as a plugin information record.
Field Summary | |
---|---|
static java.lang.String |
ACTION_INSTALL
|
static java.lang.String |
DELIMETER
|
static java.lang.String |
PACKAGE_STATUS_INSTALLED
|
static java.lang.String |
STATUS_INSTALLED
|
static java.lang.String |
STATUS_NOT_INSTALLED
|
Constructor Summary | |
---|---|
PackageInfo(java.util.Properties props)
Constructs a new plugin information record from p . |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Lower versions come first. |
int |
compareToVersion(PackageInfo info)
Returns a value > 0 if the version of this package is higher than the version of info. |
int |
compareToVersion(java.lang.String version)
|
boolean |
containsProperties(java.util.Properties p)
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getAction()
See setAction(String) for possible return values. |
java.lang.String |
getActionStatus()
Returns "ok". |
java.lang.String |
getAuthors()
|
java.lang.String[] |
getClassPath()
Returns an empty array if no dependencies are defined. |
java.lang.String |
getControlPath()
|
java.lang.String |
getDepends()
|
java.lang.String |
getDescription()
|
java.lang.String |
getDownloadFilename()
|
java.lang.String[] |
getDownloadURLs()
|
java.io.File |
getFile(java.lang.String filename)
Returns a file that is relative to this packages location. |
java.lang.String |
getFilename()
|
java.lang.String |
getLongDescription()
Returns a long description of the package's functionality that may contain html tags. |
java.lang.String |
getName()
|
java.lang.String |
getPackage()
|
java.lang.String |
getPackageStatus()
|
java.util.Properties |
getProperties()
|
java.lang.String |
getProperty(java.lang.String key)
Returns a property. |
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
Returns a property. |
java.lang.String[] |
getPropertyList(java.lang.String key)
Returns a property that is a list of strings. |
java.lang.String |
getProvides()
|
long |
getReleaseNr()
|
java.lang.String |
getSection()
|
long |
getSize()
|
java.lang.String |
getStatus()
|
java.lang.String |
getStatus(int pos)
|
java.lang.String |
getVersion()
|
boolean |
isAvailable()
|
boolean |
isBase()
|
boolean |
isCore()
|
boolean |
isInstalled()
|
boolean |
isNew()
|
boolean |
isPatch()
|
boolean |
isPlugin()
|
boolean |
isUpdateAvailable()
|
boolean |
isValid()
|
void |
putAll(java.util.Properties p)
|
void |
setAction(java.lang.String action)
Action can be "deinstall", "hold", "install", "purge" |
void |
setAvailable(boolean available)
|
void |
setClassPath(java.lang.String[] classPath)
|
void |
setControlPath(java.lang.String controlPath)
|
void |
setDescription(java.lang.String description)
|
void |
setDownloadFilename(java.lang.String filename)
|
void |
setInstalled(boolean installed)
|
void |
setNew(boolean isNew)
|
void |
setPackage(java.lang.String packageName)
|
void |
setSection(java.lang.String section)
|
void |
setStatus(java.lang.String status)
|
void |
setStatus(java.lang.String action,
java.lang.String actionStatus,
java.lang.String packageStatus)
|
void |
setVersion(java.lang.String version)
|
java.lang.String |
toString()
Returns the value of getName() . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DELIMETER
public static final java.lang.String ACTION_INSTALL
public static final java.lang.String PACKAGE_STATUS_INSTALLED
public static final java.lang.String STATUS_INSTALLED
public static final java.lang.String STATUS_NOT_INSTALLED
Constructor Detail |
---|
public PackageInfo(java.util.Properties props)
p
.
All keys with prefix
are copied to this info object.
prefix
- the key prefixMethod Detail |
---|
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public int compareToVersion(PackageInfo info)
public int compareToVersion(java.lang.String version)
public boolean containsProperties(java.util.Properties p)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String getAction()
setAction(String)
for possible return values.
public java.lang.String getActionStatus()
public java.lang.String getAuthors()
public java.lang.String[] getClassPath()
public java.lang.String getControlPath()
public java.lang.String getDepends()
public java.lang.String getDescription()
public java.lang.String getDownloadFilename()
public java.lang.String[] getDownloadURLs()
public java.io.File getFile(java.lang.String filename)
public java.lang.String getFilename()
public java.lang.String getLongDescription()
public java.lang.String getName()
public java.lang.String getPackage()
public java.lang.String getPackageStatus()
public java.util.Properties getProperties()
public java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
public java.lang.String getProperty(java.lang.String key)
public java.lang.String[] getPropertyList(java.lang.String key)
public java.lang.String getProvides()
public long getReleaseNr()
public java.lang.String getSection()
public long getSize()
public java.lang.String getStatus()
public java.lang.String getStatus(int pos)
public java.lang.String getVersion()
public boolean isAvailable()
public boolean isBase()
public boolean isCore()
public boolean isPatch()
public boolean isInstalled()
public boolean isNew()
public boolean isPlugin()
public boolean isUpdateAvailable()
public boolean isValid()
public void putAll(java.util.Properties p)
public void setAction(java.lang.String action)
public void setAvailable(boolean available)
public void setClassPath(java.lang.String[] classPath)
public void setControlPath(java.lang.String controlPath)
public void setDescription(java.lang.String description)
public void setDownloadFilename(java.lang.String filename)
public void setInstalled(boolean installed)
public void setNew(boolean isNew)
public void setPackage(java.lang.String packageName)
public void setSection(java.lang.String section)
public void setStatus(java.lang.String status)
public void setStatus(java.lang.String action, java.lang.String actionStatus, java.lang.String packageStatus)
public void setVersion(java.lang.String version)
public java.lang.String toString()
getName()
.
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |