|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPkgDesc
IPkgDesc
keeps information on individual SDK packages
(both local or remote packages definitions.)
Packages have different attributes depending on their type.
IPkgDesc
, use one of the package-specific constructors
provided by PkgDesc.newXxx()
.
To query packages capabilities, rely on getType()
and the IPkgDesc.hasXxx()
methods provided by IPkgDesc
.
Method Summary | |
---|---|
AndroidVersion |
getAndroidVersion()
Returns the package's AndroidVersion or null. |
FullRevision |
getFullRevision()
Returns the package's FullRevision or null. |
MajorRevision |
getMajorRevision()
Returns the package's MajorRevision or null. |
FullRevision |
getMinPlatformToolsRev()
Returns the package's min-platform-tools-rev or null. |
FullRevision |
getMinToolsRev()
Returns the package's min-tools-rev or null. |
java.lang.String |
getPath()
Returns the package's path string or null. |
IdDisplay |
getTag()
Returns the package's tag id-display tuple or null. |
PkgType |
getType()
Returns the type of the package. |
java.lang.String |
getVendorId()
Returns the package's vendor-id string or null. |
boolean |
isUpdateFor(IPkgDesc existingDesc)
Indicates whether this package descriptor is an update for the given existing descriptor. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface com.android.sdklib.repository.descriptors.IPkgCapabilities |
---|
hasAndroidVersion, hasFullRevision, hasMajorRevision, hasMinPlatformToolsRev, hasMinToolsRev, hasPath, hasTag, hasVendorId |
Method Detail |
---|
@NonNull PkgType getType()
PkgType
constants.@Nullable FullRevision getFullRevision()
FullRevision
or null.
IPkgCapabilities.hasFullRevision()
is true; otherwise a null value.@Nullable MajorRevision getMajorRevision()
MajorRevision
or null.
IPkgCapabilities.hasMajorRevision()
is true; otherwise a null value.@Nullable AndroidVersion getAndroidVersion()
AndroidVersion
or null.
IPkgCapabilities.hasAndroidVersion()
is true; otherwise a null value.@Nullable java.lang.String getPath()
PkgType.PKG_SYS_IMAGES
, the path is the system-image ABI. PkgType.PKG_PLATFORMS
, the path is the platform hash string. PkgType.PKG_ADDONS
, the path is the platform hash string. PkgType.PKG_EXTRAS
, the path is the extra-path string.
IPkgCapabilities.hasPath()
is true; otherwise a null value.@Nullable IdDisplay getTag()
IPkgCapabilities.hasTag()
is true; otherwise a null value.@Nullable java.lang.String getVendorId()
IPkgCapabilities.hasVendorId()
is true; otherwise a null value.@Nullable FullRevision getMinToolsRev()
min-tools-rev
or null.
IPkgCapabilities.hasMinToolsRev()
is true; otherwise a null value.@Nullable FullRevision getMinPlatformToolsRev()
min-platform-tools-rev
or null.
IPkgCapabilities.hasMinPlatformToolsRev()
is true; otherwise null.boolean isUpdateFor(@NonNull IPkgDesc existingDesc)
existingDesc
- A non-null existing descriptor.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |