Class 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. Use AndroidSdkHandler/RepoManager and 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[] 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 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
      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.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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.
    • Constructor Detail

      • RemotePkgInfo

        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)
        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 their IPkgDesc. The source is not used in the comparison.
        Specified by:
        compareTo in interface java.lang.Comparable<RemotePkgInfo>
      • hashCode

        public int hashCode()
        Deprecated.
        The remote package hash code is based on the underlying IPkgDesc. The source is not used in the hash code.
        Overrides:
        hashCode in class java.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:
        toString in class java.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:
        equals in class java.lang.Object