Class RemotePkgInfo
- java.lang.Object
-
- com.android.sdklib.repository.legacy.remote.RemotePkgInfo
-
- All Implemented Interfaces:
java.lang.Comparable<RemotePkgInfo>
@Deprecated public abstract class RemotePkgInfo extends java.lang.Object implements java.lang.Comparable<RemotePkgInfo>
Deprecated.This is part of the old SDK manager framework. UseAndroidSdkHandler/RepoManagerand associated classes instead.This class provides information on a remote package available for download via a remote SDK repository server.
-
-
Field Summary
Fields Modifier and Type Field Description protected com.android.sdklib.repository.legacy.remote.internal.archives.Archive[]mArchivesDeprecated.protected java.lang.StringmDescriptionDeprecated.protected java.lang.StringmDescUrlDeprecated.protected com.android.repository.api.LicensemLicenseDeprecated.protected java.lang.StringmListDisplayDeprecated.protected java.lang.StringmObsoleteDeprecated.protected IPkgDescmPkgDescDeprecated.Information on the package provided by the remote server.protected com.android.repository.RevisionmRevisionDeprecated.protected com.android.sdklib.repository.legacy.remote.internal.sources.SdkSourcemSourceDeprecated.
-
Constructor Summary
Constructors Constructor Description RemotePkgInfo(com.android.sdklib.repository.legacy.remote.internal.sources.SdkSource source, org.w3c.dom.Node packageNode, java.lang.String nsUri, java.util.Map<java.lang.String,java.lang.String> licenses)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intcompareTo(RemotePkgInfo o)Deprecated.Compares 2 packages by comparing theirIPkgDesc.booleanequals(java.lang.Object obj)Deprecated.com.android.sdklib.repository.legacy.remote.internal.archives.Archive[]getArchives()Deprecated.Returns the archives defined in this package.java.lang.StringgetDescription()Deprecated.Returns the optional description for all packages (platform, add-on, tool, doc) or for a lib.java.lang.StringgetDescUrl()Deprecated.Returns the optional description URL for all packages (platform, add-on, tool, doc).com.android.repository.api.LicensegetLicense()Deprecated.Returns the optional description for all packages (platform, add-on, tool, doc) or for a lib.java.lang.StringgetListDisplay()Deprecated.Returns the optional list-display for all packages as defined in the XML meta data and is typically only used internally.IPkgDescgetPkgDesc()Deprecated.Information on the package provided by the remote server.com.android.repository.RevisiongetRevision()Deprecated.Returns the revision for this package.java.lang.StringgetShortDescription()Deprecated.Returns a short description.inthashCode()Deprecated.The remote package hash code is based on the underlyingIPkgDesc.booleanisObsolete()Deprecated.Returns true if the package is deemed obsolete, that is it contains an actual<obsolete>element.java.lang.StringtoString()Deprecated.Returns the short description of the source, if not null.
-
-
-
Field Detail
-
mPkgDesc
@NonNull protected IPkgDesc mPkgDesc
Deprecated.Information on the package provided by the remote server.
-
mObsolete
protected final java.lang.String mObsolete
Deprecated.
-
mLicense
protected final com.android.repository.api.License mLicense
Deprecated.
-
mListDisplay
protected final java.lang.String mListDisplay
Deprecated.
-
mDescription
protected final java.lang.String mDescription
Deprecated.
-
mDescUrl
protected final java.lang.String mDescUrl
Deprecated.
-
mRevision
protected com.android.repository.Revision mRevision
Deprecated.
-
mArchives
protected final com.android.sdklib.repository.legacy.remote.internal.archives.Archive[] mArchives
Deprecated.
-
mSource
protected final com.android.sdklib.repository.legacy.remote.internal.sources.SdkSource mSource
Deprecated.
-
-
Method Detail
-
getPkgDesc
@NonNull public IPkgDesc getPkgDesc()
Deprecated.Information on the package provided by the remote server.
-
compareTo
public int compareTo(@NonNull RemotePkgInfo o)Deprecated.Compares 2 packages by comparing theirIPkgDesc. The source is not used in the comparison.- Specified by:
compareToin interfacejava.lang.Comparable<RemotePkgInfo>
-
hashCode
public int hashCode()
Deprecated.The remote package hash code is based on the underlyingIPkgDesc. The source is not used in the hash code.- Overrides:
hashCodein classjava.lang.Object
-
isObsolete
public boolean isObsolete()
Deprecated.Returns true if the package is deemed obsolete, that is it contains an actual<obsolete>element.
-
getRevision
@NonNull public com.android.repository.Revision getRevision()
Deprecated.Returns the revision for this package.
-
getLicense
@Nullable public com.android.repository.api.License getLicense()
Deprecated.Returns the optional description for all packages (platform, add-on, tool, doc) or for a lib. It is null if the element has not been specified in the repository XML.
-
getDescription
@NonNull public java.lang.String getDescription()
Deprecated.Returns the optional description for all packages (platform, add-on, tool, doc) or for a lib. This is the raw description available from the XML meta data and is typically only used internally.Can be empty but not null.
-
getListDisplay
@NonNull public java.lang.String getListDisplay()
Deprecated.Returns the optional list-display for all packages as defined in the XML meta data and is typically only used internally.Can be empty but not null.
-
getDescUrl
@NonNull public java.lang.String getDescUrl()
Deprecated.Returns the optional description URL for all packages (platform, add-on, tool, doc). Can be empty but not null.
-
getArchives
@NonNull public com.android.sdklib.repository.legacy.remote.internal.archives.Archive[] getArchives()
Deprecated.Returns the archives defined in this package. Can be an empty array but not null.
-
toString
@NonNull public java.lang.String toString()
Deprecated.Returns the short description of the source, if not null. Otherwise returns the default Object toString result.This is mostly helpful for debugging.
- Overrides:
toStringin classjava.lang.Object
-
getShortDescription
@NonNull public final java.lang.String getShortDescription()
Deprecated.Returns a short description. Can be empty but not null.
-
equals
public boolean equals(java.lang.Object obj)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
-