org.stanwood.media.source.xbmc.updater
Enum AddonStatus

java.lang.Object
  extended by java.lang.Enum<AddonStatus>
      extended by org.stanwood.media.source.xbmc.updater.AddonStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AddonStatus>

public enum AddonStatus
extends java.lang.Enum<AddonStatus>

Used to represent the different statuses of addons


Enum Constant Summary
INSTALLED
          Indicates that the addon is installed on the users system
NOT_INSTALLED
          Indicates that the addon is not installed on the users system
OUT_OF_DATE
          Indicates that the plugin is instlled, but their is a new version avaliable
 
Method Summary
 java.lang.String getDisplayName()
          Used to get the display name of the status
static AddonStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AddonStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INSTALLED

public static final AddonStatus INSTALLED
Indicates that the addon is installed on the users system


NOT_INSTALLED

public static final AddonStatus NOT_INSTALLED
Indicates that the addon is not installed on the users system


OUT_OF_DATE

public static final AddonStatus OUT_OF_DATE
Indicates that the plugin is instlled, but their is a new version avaliable

Method Detail

values

public static AddonStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AddonStatus c : AddonStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AddonStatus valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getDisplayName

public java.lang.String getDisplayName()
Used to get the display name of the status

Returns:
The display name of the status