com.android.sdklib.repository.local
Class LocalExtraPkgInfo

java.lang.Object
  extended by com.android.sdklib.repository.local.LocalPkgInfo
      extended by com.android.sdklib.repository.local.LocalExtraPkgInfo
All Implemented Interfaces:
com.android.sdklib.internal.repository.IDescription, com.android.sdklib.internal.repository.IListDescription, java.lang.Comparable<LocalPkgInfo>

public class LocalExtraPkgInfo
extends LocalPkgInfo


Constructor Summary
LocalExtraPkgInfo(LocalSdk localSdk, java.io.File localDir, java.util.Properties sourceProps, IdDisplay vendor, java.lang.String path, java.lang.String displayName, java.lang.String[] oldPaths, NoPreviewRevision revision)
           
 
Method Summary
 IPkgDesc getDesc()
          Returns the IPkgDesc describing this package.
 java.lang.String[] getOldPaths()
           
 com.android.sdklib.internal.repository.packages.Package getPackage()
           
static java.lang.String getPrettyName(IdDisplay vendor, java.lang.String extraPath)
          Used to produce a suitable name-display based on the extra's path and vendor display string in addon-3 schemas.
 
Methods inherited from class com.android.sdklib.repository.local.LocalPkgInfo
compareTo, equals, getListDescription, getLoadError, getLocalDir, getLocalSdk, getLongDescription, getShortDescription, getSourceProperties, getUpdate, hashCode, hasLoadError, hasUpdate, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalExtraPkgInfo

public LocalExtraPkgInfo(@NonNull
                         LocalSdk localSdk,
                         @NonNull
                         java.io.File localDir,
                         @NonNull
                         java.util.Properties sourceProps,
                         @NonNull
                         IdDisplay vendor,
                         @NonNull
                         java.lang.String path,
                         @Nullable
                         java.lang.String displayName,
                         @NonNull
                         java.lang.String[] oldPaths,
                         @NonNull
                         NoPreviewRevision revision)
Method Detail

getDesc

@NonNull
public IPkgDesc getDesc()
Description copied from class: LocalPkgInfo
Returns the IPkgDesc describing this package.

Specified by:
getDesc in class LocalPkgInfo

getOldPaths

@NonNull
public java.lang.String[] getOldPaths()

getPackage

@Nullable
public com.android.sdklib.internal.repository.packages.Package getPackage()
Overrides:
getPackage in class LocalPkgInfo

getPrettyName

public static java.lang.String getPrettyName(@Nullable
                                             IdDisplay vendor,
                                             @NonNull
                                             java.lang.String extraPath)
Used to produce a suitable name-display based on the extra's path and vendor display string in addon-3 schemas.

Parameters:
vendor - The vendor id of the extra.
extraPath - The non-null path of the extra.
Returns:
A non-null display name based on the extra's path id.