Package com.android.repository.api
Interface RepoPackage
-
- All Superinterfaces:
java.lang.Comparable<RepoPackage>
- All Known Subinterfaces:
LocalPackage,RemotePackage
- All Known Implementing Classes:
LocalPackage,LocalPackage,LocalPackageImpl,RemotePackage,RemotePackage,RemotePackageImpl,RepoPackageImpl
public interface RepoPackage extends java.lang.Comparable<RepoPackage>
A local or remote repository package, uniquely identified by it'sversionandpath.
-
-
Field Summary
Fields Modifier and Type Field Description static charPATH_SEPARATOR
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RepoPackageImplasMarshallable()Returns a package with the same content as this one that can be marshalled using JAXB (orthisif it already can be marshalled).CommonFactorycreateFactory()Creates aCommonFactorycorresponding to theSchemaModule.SchemaModuleVersionof this instance.java.util.Collection<Dependency>getAllDependencies()Gets information on what versions of what packages this package depends on.java.lang.StringgetDisplayName()Gets the user-friendly name of this package.LicensegetLicense()Gets theLicense, if any, associated with this package.java.lang.StringgetPath()The install path (which also serves as unique id) for this package.TypeDetailsgetTypeDetails()Gets theTypeDetailsfor this package.RevisiongetVersion()Gets theRevisionof this package.booleanobsolete()Whether this package is obsolete.
-
-
-
Field Detail
-
PATH_SEPARATOR
static final char PATH_SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTypeDetails
@NonNull TypeDetails getTypeDetails()
Gets theTypeDetailsfor this package.
-
getDisplayName
@NonNull java.lang.String getDisplayName()
Gets the user-friendly name of 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 aCommonFactorycorresponding to theSchemaModule.SchemaModuleVersionof this instance.
-
asMarshallable
@NonNull RepoPackageImpl asMarshallable()
Returns a package with the same content as this one that can be marshalled using JAXB (orthisif it already can be marshalled).
-
-