AndroidSdkHandler
/RepoManager
and associated classes instead.@Deprecated public abstract class RemotePkgInfo extends java.lang.Object implements java.lang.Comparable<RemotePkgInfo>
Modifier and Type | Field and Description |
---|---|
protected com.android.sdklib.repository.legacy.remote.internal.archives.Archive[] |
mArchives
Deprecated.
|
protected java.lang.String |
mDescription
Deprecated.
|
protected java.lang.String |
mDescUrl
Deprecated.
|
protected com.android.repository.api.License |
mLicense
Deprecated.
|
protected java.lang.String |
mListDisplay
Deprecated.
|
protected java.lang.String |
mObsolete
Deprecated.
|
protected IPkgDesc |
mPkgDesc
Deprecated.
Information on the package provided by the remote server.
|
protected com.android.repository.Revision |
mRevision
Deprecated.
|
protected com.android.sdklib.repository.legacy.remote.internal.sources.SdkSource |
mSource
Deprecated.
|
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(RemotePkgInfo o)
Deprecated.
Compares 2 packages by comparing their
IPkgDesc . |
boolean |
equals(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.String |
getDescription()
Deprecated.
Returns the optional description for all packages (platform, add-on, tool, doc) or for a lib.
|
java.lang.String |
getDescUrl()
Deprecated.
Returns the optional description URL for all packages (platform, add-on, tool, doc).
|
com.android.repository.api.License |
getLicense()
Deprecated.
Returns the optional description for all packages (platform, add-on, tool, doc) or for a lib.
|
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.
|
IPkgDesc |
getPkgDesc()
Deprecated.
Information on the package provided by the remote server.
|
com.android.repository.Revision |
getRevision()
Deprecated.
Returns the revision for this package.
|
java.lang.String |
getShortDescription()
Deprecated.
Returns a short description.
|
int |
hashCode()
Deprecated.
The remote package hash code is based on the underlying
IPkgDesc . |
boolean |
isObsolete()
Deprecated.
Returns true if the package is deemed obsolete, that is it contains an actual
<obsolete> element. |
java.lang.String |
toString()
Deprecated.
Returns the short description of the source, if not null.
|
@NonNull protected IPkgDesc mPkgDesc
protected final java.lang.String mObsolete
protected final com.android.repository.api.License mLicense
protected final java.lang.String mListDisplay
protected final java.lang.String mDescription
protected final java.lang.String mDescUrl
protected com.android.repository.Revision mRevision
protected final com.android.sdklib.repository.legacy.remote.internal.archives.Archive[] mArchives
protected final com.android.sdklib.repository.legacy.remote.internal.sources.SdkSource mSource
public 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)
@NonNull public IPkgDesc getPkgDesc()
public int compareTo(@NonNull RemotePkgInfo o)
IPkgDesc
. The source is not used in the
comparison.compareTo
in interface java.lang.Comparable<RemotePkgInfo>
public int hashCode()
IPkgDesc
. The source is not
used in the hash code.hashCode
in class java.lang.Object
public boolean isObsolete()
<obsolete>
element.@NonNull public com.android.repository.Revision getRevision()
@Nullable public com.android.repository.api.License getLicense()
@NonNull public java.lang.String getDescription()
Can be empty but not null.
@NonNull public java.lang.String getListDisplay()
Can be empty but not null.
@NonNull public java.lang.String getDescUrl()
@NonNull public com.android.sdklib.repository.legacy.remote.internal.archives.Archive[] getArchives()
@NonNull public java.lang.String toString()
This is mostly helpful for debugging.
toString
in class java.lang.Object
@NonNull public final java.lang.String getShortDescription()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object