org.stanwood.media.source.xbmc.updater
Class AddonDetails

java.lang.Object
  extended by org.stanwood.media.source.xbmc.updater.AddonDetails

public class AddonDetails
extends java.lang.Object

Used to store information about XBMC addons


Constructor Summary
AddonDetails(java.lang.String id, Version installedVersion, Version avaliableVersion, AddonStatus status)
          Constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 Version getAvaliableVersion()
          Used to get the version of the addon available the update site
 java.lang.String getId()
          Used to get the ID of the addon
 Version getInstalledVersion()
          Used to get the installed version of the addon or null if it's not installed
 java.util.Set<java.lang.String> getRequiredAddons()
          Used to get the addon id's that this addon requires
 AddonStatus getStatus()
          Used to get the status of the addon
 int hashCode()
          
 void setAvaliableVersion(Version avaliableVersion)
          Used to set the version of the addon available the update site
 void setInstalledVersion(Version installedVersion)
          Used to set the installed version of the addon
 void setRequiredAddons(java.util.Set<java.lang.String> requiredAddons)
          Used to set the addon id's that this addon requires
 void setStatus(AddonStatus status)
          Used to set the status of the addon
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddonDetails

public AddonDetails(java.lang.String id,
                    Version installedVersion,
                    Version avaliableVersion,
                    AddonStatus status)
Constructor

Parameters:
id - The ID of the addon
installedVersion - The installed version number or null if it's not installed
avaliableVersion - The latest version number as found on the update site
status - The status of the addon
Method Detail

getId

public java.lang.String getId()
Used to get the ID of the addon

Returns:
the ID of the addon

getStatus

public AddonStatus getStatus()
Used to get the status of the addon

Returns:
The status of the addon

setStatus

public void setStatus(AddonStatus status)
Used to set the status of the addon

Parameters:
status - The status of the addon

getRequiredAddons

public java.util.Set<java.lang.String> getRequiredAddons()
Used to get the addon id's that this addon requires

Returns:
The required addon

setRequiredAddons

public void setRequiredAddons(java.util.Set<java.lang.String> requiredAddons)
Used to set the addon id's that this addon requires

Parameters:
requiredAddons - The required addon

getAvaliableVersion

public Version getAvaliableVersion()
Used to get the version of the addon available the update site

Returns:
The version of the addon available the update site

setAvaliableVersion

public void setAvaliableVersion(Version avaliableVersion)
Used to set the version of the addon available the update site

Parameters:
avaliableVersion - the version of the addon available the update site

getInstalledVersion

public Version getInstalledVersion()
Used to get the installed version of the addon or null if it's not installed

Returns:
the installed version of the addon or null if it's not installed

setInstalledVersion

public void setInstalledVersion(Version installedVersion)
Used to set the installed version of the addon

Parameters:
installedVersion - The installed version of the addon, or null if it's not installed

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object