com.android.sdklib.repository.descriptors
Interface IPkgDescExtra

All Superinterfaces:
java.lang.Comparable<IPkgDesc>, com.android.sdklib.internal.repository.IListDescription, IPkgCapabilities, IPkgDesc
All Known Implementing Classes:
PkgDescExtra

public interface IPkgDescExtra
extends IPkgDesc

IPkgDescExtra keeps information on individual extra SDK packages (both local or remote packages definitions.) The base IPkgDesc tries to present a unified interface to package attributes and this interface adds methods specific to extras.

To create a new IPkgDescExtra, use PkgDesc.Builder.newExtra(IdDisplay, String, String, String[], NoPreviewRevision).

The extra's revision is a NoPreviewRevision; the attribute is however accessed via IPkgDesc.getFullRevision() instead of introducing a new custom method.

To query generic packages capabilities, rely on IPkgDesc.getType() and the IPkgDesc.hasXxx() methods provided by IPkgDesc.


Method Summary
 java.lang.String getNameDisplay()
          Returns the display name of the Extra.
 java.lang.String[] getOldPaths()
          Returns an optional list of older paths for this extra package.
 
Methods inherited from interface com.android.sdklib.repository.descriptors.IPkgDesc
getAndroidVersion, getCanonicalInstallFolder, getDescriptionShort, getDescriptionUrl, getFullRevision, getInstallId, getLicense, getListDisplay, getMajorRevision, getMinPlatformToolsRev, getMinToolsRev, getPath, getTag, getType, getVendor, isObsolete, isUpdateFor
 
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, hasVendor
 
Methods inherited from interface com.android.sdklib.internal.repository.IListDescription
getListDescription
 

Method Detail

getOldPaths

@NonNull
java.lang.String[] getOldPaths()
Returns an optional list of older paths for this extra package.

Returns:
A non-null, possibly empty, for old paths previously used for the same extra.

getNameDisplay

@NonNull
java.lang.String getNameDisplay()
Returns the display name of the Extra.

Returns:
A non-null name for the Extra, used for display purposes.