com.android.repository.impl.meta
Class RemotePackageImpl

java.lang.Object
  extended by com.android.repository.impl.meta.RepoPackageImpl
      extended by com.android.repository.impl.meta.RemotePackageImpl
All Implemented Interfaces:
RemotePackage, RepoPackage, java.lang.Comparable<RepoPackage>
Direct Known Subclasses:
RemotePackage

public abstract class RemotePackageImpl
extends RepoPackageImpl
implements RemotePackage

An implementation of RemotePackage that can be created as part of a Repository by JAXB.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.android.repository.impl.meta.RepoPackageImpl
RepoPackageImpl.Archives, RepoPackageImpl.Dependencies, RepoPackageImpl.UsesLicense
 
Field Summary
 
Fields inherited from interface com.android.repository.api.RepoPackage
PATH_SEPARATOR
 
Constructor Summary
RemotePackageImpl()
           
 
Method Summary
 java.util.List<Archive> getAllArchives()
          Convenience method to get all the Archives included in this package.
 Archive getArchive()
           
protected abstract  RepoPackageImpl.Archives getArchives()
           
 RepositorySource getSource()
           
 void setSource(RepositorySource source)
           
 
Methods inherited from class com.android.repository.impl.meta.RepoPackageImpl
addDependency, compareTo, equals, getAllDependencies, getDependencies, getDisplayName, getLicense, getPath, getRevision, getTypeDetails, getUsesLicense, getVersion, hashCode, isObsolete, obsolete, setDependencies, setDisplayName, setLicense, setObsolete, setPath, setRevision, setTypeDetails, setUsesLicense, setVersion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.android.repository.api.RepoPackage
createFactory, getAllDependencies, getDisplayName, getLicense, getPath, getTypeDetails, getVersion, obsolete
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

RemotePackageImpl

public RemotePackageImpl()
Method Detail

setSource

public void setSource(@NonNull
                      RepositorySource source)
Specified by:
setSource in interface RemotePackage
Parameters:
source - The RepositorySource from which we got this package.

getArchive

@Nullable
public Archive getArchive()
Specified by:
getArchive in interface RemotePackage
Returns:
The archive in this package compatible with the current hardware, OS, and JDK, or null if there is none.

getAllArchives

@NonNull
public java.util.List<Archive> getAllArchives()
Convenience method to get all the Archives included in this package.


getArchives

@NonNull
protected abstract RepoPackageImpl.Archives getArchives()

getSource

@NonNull
public RepositorySource getSource()
Specified by:
getSource in interface RemotePackage
Returns:
The RepositorySource from which we got this package.