|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<PkgType>
com.android.sdklib.repository.descriptors.PkgType
public enum PkgType
Package types handled by the LocalSdk
.
getIntValue()
for backward
compatibility with the older LocalSdkParser
class.
The integer bit values also indicate the natural ordering of the packages.
Enum Constant Summary | |
---|---|
PKG_ADDONS
Filter the SDK/addons. |
|
PKG_BUILD_TOOLS
Filter the SDK/build-tools folder. |
|
PKG_DOCS
Filter the SDK/docs folder. |
|
PKG_EXTRAS
Filter the SDK/extras folder. |
|
PKG_PLATFORM_TOOLS
Filter the SDK/platform-tools folder. |
|
PKG_PLATFORMS
Filter the SDK/platforms. |
|
PKG_SAMPLES
Filter the SDK/samples folder. |
|
PKG_SOURCES
Filter the SDK/sources folder. |
|
PKG_SYS_IMAGES
Filter the SDK/sys-images. |
|
PKG_TOOLS
Filter the SDK/tools folder. |
Field Summary | |
---|---|
static java.util.EnumSet<PkgType> |
PKG_ALL
A collection of all the known PkgTypes. |
static int |
PKG_ALL_INT
Integer value matching all available pkg types, for the old LocalSdkParer. |
Method Summary | |
---|---|
java.lang.String |
getFolderName()
|
int |
getIntValue()
|
boolean |
hasAndroidVersion()
Indicates whether this package type has a AndroidVersion . |
boolean |
hasFullRevision()
Indicates whether this package type has a FullRevision . |
boolean |
hasMajorRevision()
Indicates whether this package type has a MajorRevision . |
boolean |
hasMinPlatformToolsRev()
Indicates whether this package type has a min-platform-tools-rev attribute. |
boolean |
hasMinToolsRev()
Indicates whether this package type has a min-tools-rev attribute. |
boolean |
hasPath()
Indicates whether this package type has a path. |
boolean |
hasVendorId()
Indicates whether this package type has a vendor id. |
static PkgType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static PkgType[] |
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 |
---|
public static final PkgType PKG_TOOLS
FullRevision
.
public static final PkgType PKG_PLATFORM_TOOLS
FullRevision
.
public static final PkgType PKG_BUILD_TOOLS
FullRevision
.
public static final PkgType PKG_DOCS
MajorRevision
.
public static final PkgType PKG_EXTRAS
Path
. Has MajorRevision
.
Path returns the combined vendor id + extra path.
Cast the descriptor to IPkgDescExtra
to get extra's specific attributes.
public static final PkgType PKG_PLATFORMS
AndroidVersion
. Has MajorRevision
.
Path returns the Add-on's target hash.
public static final PkgType PKG_SYS_IMAGES
AndroidVersion
. Has MajorRevision
.
Path returns the system image ABI.
public static final PkgType PKG_ADDONS
AndroidVersion
. Has MajorRevision
.
Path returns the Add-on's target hash.
public static final PkgType PKG_SAMPLES
AndroidVersion
. Has MajorRevision
.
public static final PkgType PKG_SOURCES
AndroidVersion
. Has MajorRevision
.
Field Detail |
---|
public static final java.util.EnumSet<PkgType> PKG_ALL
public static final int PKG_ALL_INT
Method Detail |
---|
public static PkgType[] values()
for (PkgType c : PkgType.values()) System.out.println(c);
public static PkgType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic int getIntValue()
@NonNull public java.lang.String getFolderName()
public boolean hasMajorRevision()
IPkgCapabilities
MajorRevision
.
hasMajorRevision
in interface IPkgCapabilities
MajorRevision
.public boolean hasFullRevision()
IPkgCapabilities
FullRevision
.
hasFullRevision
in interface IPkgCapabilities
FullRevision
.public boolean hasAndroidVersion()
IPkgCapabilities
AndroidVersion
.
hasAndroidVersion
in interface IPkgCapabilities
AndroidVersion
.public boolean hasPath()
IPkgCapabilities
hasPath
in interface IPkgCapabilities
public boolean hasVendorId()
IPkgCapabilities
hasVendorId
in interface IPkgCapabilities
public boolean hasMinToolsRev()
IPkgCapabilities
min-tools-rev
attribute.
hasMinToolsRev
in interface IPkgCapabilities
min-tools-rev
attribute.public boolean hasMinPlatformToolsRev()
IPkgCapabilities
min-platform-tools-rev
attribute.
hasMinPlatformToolsRev
in interface IPkgCapabilities
min-platform-tools-rev
attribute.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |