com.android.repository.api
Class Repository

java.lang.Object
  extended by 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.


Constructor Summary
Repository()
           
 
Method Summary
 void addLicense(License l)
          Convenience method to add a License to this repository.
abstract  CommonFactory createFactory()
           
 java.util.List<License> getLicense()
           
 LocalPackage getLocalPackage()
           
 java.util.List<? extends RemotePackage> getRemotePackage()
           
 void setLocalPackage(LocalPackageImpl p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Repository

public Repository()
Method Detail

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()