Package com.android.repository.api
Class Repository
- java.lang.Object
-
- com.android.repository.api.Repository
-
- Direct Known Subclasses:
RepositoryType,RepositoryType
public abstract class Repository extends java.lang.ObjectParsed representation of a repository xml file, including packages and licenses. Primarily stubs to be overridden by xjc-generated classes.
-
-
Constructor Summary
Constructors Constructor Description Repository()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddChannel(Channel c)Convenience method to add aChannelto this repository.voidaddLicense(License l)Convenience method to add aLicenseto this repository.abstract CommonFactorycreateFactory()abstract java.util.List<Channel>getChannel()abstract java.util.List<License>getLicense()LocalPackagegetLocalPackage()java.util.List<RemotePackageImpl>getRemotePackage()voidsetLocalPackage(LocalPackageImpl p)
-
-
-
Method Detail
-
getLicense
@NonNull public abstract java.util.List<License> getLicense()
- Returns:
- The
Licenses included in this repository. In general licenses should be obtained fromRepoPackages, not directly from the repository (as they might not even apply to any packages.
-
addLicense
public void addLicense(@NonNull License l)Convenience method to add aLicenseto this repository.
-
getChannel
@NonNull public abstract java.util.List<Channel> getChannel()
- Returns:
- The
Channels included in this repository. In general licenses should be obtained fromRepoPackages, not directly from the repository (as they might not even apply to any packages.
-
addChannel
public void addChannel(@NonNull Channel c)Convenience method to add aChannelto this repository.
-
createFactory
@NonNull public abstract CommonFactory createFactory()
-
getRemotePackage
@NonNull public java.util.List<RemotePackageImpl> getRemotePackage()
-
setLocalPackage
public void setLocalPackage(@Nullable LocalPackageImpl p)
-
getLocalPackage
@Nullable public LocalPackage getLocalPackage()
-
-