com.android.sdklib.internal.repository.sources
Enum SdkSourceCategory

java.lang.Object
  extended by java.lang.Enum<SdkSourceCategory>
      extended by com.android.sdklib.internal.repository.sources.SdkSourceCategory
All Implemented Interfaces:
IDescription, java.io.Serializable, java.lang.Comparable<SdkSourceCategory>

public enum SdkSourceCategory
extends java.lang.Enum<SdkSourceCategory>
implements IDescription

The category of a given SdkSource (which represents a download site).


Enum Constant Summary
ADDONS_3RD_PARTY
          All third-party add-ons fetched from the Android repository.
ANDROID_REPO
          The default canonical and official Android repository.
GETENV_ADDONS
          Add-ons contributed by the SDK_UPDATER_USER_URLS env var, only used for local debugging.
GETENV_REPOS
          Repositories contributed by the SDK_UPDATER_URLS env var, only used for local debugging.
USER_ADDONS
          All add-ons contributed locally by the user via the "Add Add-on Site" button.
 
Method Summary
 boolean getAlwaysDisplay()
          True if this category must always be displayed by the available package tree, even if empty.
 java.lang.String getLongDescription()
          Returns a description of the given element.
 java.lang.String getShortDescription()
          Returns a description of the given element.
 java.lang.String getUiName()
          Returns the UI-visible name of the category.
static SdkSourceCategory valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SdkSourceCategory[] 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

ANDROID_REPO

public static final SdkSourceCategory ANDROID_REPO
The default canonical and official Android repository.


GETENV_REPOS

public static final SdkSourceCategory GETENV_REPOS
Repositories contributed by the SDK_UPDATER_URLS env var, only used for local debugging.


ADDONS_3RD_PARTY

public static final SdkSourceCategory ADDONS_3RD_PARTY
All third-party add-ons fetched from the Android repository.


USER_ADDONS

public static final SdkSourceCategory USER_ADDONS
All add-ons contributed locally by the user via the "Add Add-on Site" button.


GETENV_ADDONS

public static final SdkSourceCategory GETENV_ADDONS
Add-ons contributed by the SDK_UPDATER_USER_URLS env var, only used for local debugging.

Method Detail

values

public static SdkSourceCategory[] 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 (SdkSourceCategory c : SdkSourceCategory.values())
    System.out.println(c);

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

valueOf

public static SdkSourceCategory 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

getUiName

public java.lang.String getUiName()
Returns the UI-visible name of the category. Displayed in the available package tree. Cannot be null nor empty.


getAlwaysDisplay

public boolean getAlwaysDisplay()
True if this category must always be displayed by the available package tree, even if empty. When false, the category must not be displayed when empty.


getLongDescription

public java.lang.String getLongDescription()
Description copied from interface: IDescription
Returns a description of the given element. Cannot be null.

A description is a multi-line of text, typically much more elaborate than what Object.toString() would provide.

Specified by:
getLongDescription in interface IDescription

getShortDescription

public java.lang.String getShortDescription()
Description copied from interface: IDescription
Returns a description of the given element. Cannot be null.

A description is a multi-line of text, typically much more elaborate than what Object.toString() would provide.

Specified by:
getShortDescription in interface IDescription