com.android.sdklib.repository.local
Class LocalExtraPkgInfo
java.lang.Object
com.android.sdklib.repository.local.LocalPkgInfo
com.android.sdklib.repository.local.LocalExtraPkgInfo
- All Implemented Interfaces:
- 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,
com.android.repository.Revision revision)
|
Method Summary |
IPkgDesc |
getDesc()
Returns the IPkgDesc describing this package. |
java.lang.String[] |
getOldPaths()
|
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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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
com.android.repository.Revision revision)
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()
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.