com.android.repository.api
Class Repository
java.lang.Object
com.android.repository.api.Repository
- Direct Known Subclasses:
- RepositoryType
public abstract class Repository
- extends java.lang.Object
Parsed representation of a repository xml file, including packages and licenses.
Primarily stubs to be overridden by xjc-generated classes.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Repository
public Repository()
getLicense
@NonNull
public java.util.List<License> getLicense()
- Returns:
- The
Licenses included in this repository. In general licenses should be
obtained from RepoPackages, 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 a
License to this repository.
createFactory
@NonNull
public abstract CommonFactory createFactory()
getRemotePackage
@NonNull
public java.util.List<? extends RemotePackage> getRemotePackage()
setLocalPackage
public void setLocalPackage(@Nullable
LocalPackageImpl p)
getLocalPackage
@Nullable
public LocalPackage getLocalPackage()