com.android.sdklib.internal.repository.archives
Enum Archive.Os

java.lang.Object
  extended by java.lang.Enum<Archive.Os>
      extended by com.android.sdklib.internal.repository.archives.Archive.Os
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Archive.Os>
Enclosing class:
Archive

public static enum Archive.Os
extends java.lang.Enum<Archive.Os>

The OS that this archive can be downloaded on.


Enum Constant Summary
ANY
           
LINUX
           
MACOSX
           
WINDOWS
           
 
Method Summary
static Archive.Os getCurrentOs()
          Returns the current OS as one of the Archive.Os enum values or null.
 java.lang.String getUiName()
          Returns the UI name of the OS.
 java.lang.String getXmlName()
          Returns the XML name of the OS.
 boolean isCompatible()
          Returns true if this OS is compatible with the current one.
static Archive.Os valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Archive.Os[] 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

ANY

public static final Archive.Os ANY

LINUX

public static final Archive.Os LINUX

MACOSX

public static final Archive.Os MACOSX

WINDOWS

public static final Archive.Os WINDOWS
Method Detail

values

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

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

valueOf

public static Archive.Os 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 name of the OS.


getXmlName

public java.lang.String getXmlName()
Returns the XML name of the OS.


getCurrentOs

public static Archive.Os getCurrentOs()
Returns the current OS as one of the Archive.Os enum values or null.


isCompatible

public boolean isCompatible()
Returns true if this OS is compatible with the current one.