com.android.repository.api
Interface RepoPackage

All Superinterfaces:
java.lang.Comparable<RepoPackage>
All Known Subinterfaces:
LocalPackage, RemotePackage
All Known Implementing Classes:
FakePackage, LocalPackage, LocalPackageImpl, RemotePackage, RemotePackageImpl, RepoPackageImpl

public interface RepoPackage
extends java.lang.Comparable<RepoPackage>

A local or remote repository package, uniquely identified by it's version and path.


Field Summary
static char PATH_SEPARATOR
           
 
Method Summary
 CommonFactory createFactory()
          Creates a CommonFactory corresponding to the SchemaModule.SchemaModuleVersion of this instance.
 java.util.Collection<Dependency> getAllDependencies()
          Gets information on what versions of what packages this package depends on.
 java.lang.String getDisplayName()
          Gets the user-friendly name of this package.
 License getLicense()
          Gets the License, if any, associated with this package.
 java.lang.String getPath()
          The install path (which also serves as unique id) for this package.
 TypeDetails getTypeDetails()
          Gets the TypeDetails for this package.
 Revision getVersion()
          Gets the Revision of this package.
 boolean obsolete()
          Whether this package is obsolete.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

PATH_SEPARATOR

static final char PATH_SEPARATOR
See Also:
Constant Field Values
Method Detail

getTypeDetails

@NonNull
TypeDetails getTypeDetails()
Gets the TypeDetails for this package.


getVersion

@NonNull
Revision getVersion()
Gets the Revision of this package.


getDisplayName

@NonNull
java.lang.String getDisplayName()
Gets the user-friendly name of this package.


getLicense

@Nullable
License getLicense()
Gets the License, if any, associated with this package.


getAllDependencies

@NonNull
java.util.Collection<Dependency> getAllDependencies()
Gets information on what versions of what packages this package depends on.


getPath

@NonNull
java.lang.String getPath()
The install path (which also serves as unique id) for this package.


obsolete

boolean obsolete()
Whether this package is obsolete.


createFactory

@NonNull
CommonFactory createFactory()
Creates a CommonFactory corresponding to the SchemaModule.SchemaModuleVersion of this instance.