com.android.repository.impl.meta
Class CommonFactory

java.lang.Object
  extended by com.android.repository.impl.meta.CommonFactory
Direct Known Subclasses:
ObjectFactory

public abstract class CommonFactory
extends java.lang.Object

Factory for creating the objects used by the repository framework. Instances of this class can be obtained from any of the objects creatable by this class, or by RepoManager.getCommonModule().createLatestFactory(). Primarily a superclass for xjc-generated ObjectFactorys. Most methods shouldn't be needed outside the repository framework.


Constructor Summary
CommonFactory()
           
 
Method Summary
protected abstract  RepoPackageImpl.Archives createArchivesType()
           
abstract  Archive createArchiveType()
           
abstract  RemotePackageImpl.ChannelRef createChannelRefType()
           
abstract  Channel createChannelType()
           
 Channel createChannelType(int id)
          Convenience method to create a Channel with the given numeric id.
abstract  Archive.CompleteType createCompleteType()
           
abstract  RepoPackageImpl.Dependencies createDependenciesType()
           
abstract  Dependency createDependencyType()
           
 Dependency createDependencyType(Revision minRevision, java.lang.String path)
          Creates a Dependency with the given minRevision and path.
abstract  RepoPackageImpl.UsesLicense createLicenseRefType()
           
abstract  License createLicenseType()
           
 License createLicenseType(java.lang.String value, java.lang.String id)
          Convenience method to create a license with the given id and value.
abstract  LocalPackageImpl createLocalPackage()
           
protected abstract  Archive.PatchType createPatchType()
           
abstract  RemotePackageImpl createRemotePackage()
           
abstract  Repository createRepositoryType()
           
protected abstract  RevisionType createRevisionType()
           
 RevisionType createRevisionType(Revision revision)
          Creates a RevisionType from the specified Revision.
abstract  javax.xml.bind.JAXBElement<Repository> generateRepository(Repository repo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonFactory

public CommonFactory()
Method Detail

createRepositoryType

@NonNull
public abstract Repository createRepositoryType()

createArchiveType

@NonNull
public abstract Archive createArchiveType()

createArchivesType

@NonNull
protected abstract RepoPackageImpl.Archives createArchivesType()

createLocalPackage

@NonNull
public abstract LocalPackageImpl createLocalPackage()

createRemotePackage

@NonNull
public abstract RemotePackageImpl createRemotePackage()

createRevisionType

@NonNull
protected abstract RevisionType createRevisionType()

createChannelType

@NonNull
public abstract Channel createChannelType()

generateRepository

@NonNull
public abstract javax.xml.bind.JAXBElement<Repository> generateRepository(Repository repo)

createChannelType

@NonNull
public Channel createChannelType(int id)
Convenience method to create a Channel with the given numeric id.


createRevisionType

@NonNull
public RevisionType createRevisionType(Revision revision)
Creates a RevisionType from the specified Revision.


createLicenseRefType

@NonNull
public abstract RepoPackageImpl.UsesLicense createLicenseRefType()

createLicenseType

@NonNull
public License createLicenseType(java.lang.String value,
                                         java.lang.String id)
Convenience method to create a license with the given id and value.


createLicenseType

@NonNull
public abstract License createLicenseType()

createDependencyType

@NonNull
public abstract Dependency createDependencyType()

createDependencyType

@NonNull
public Dependency createDependencyType(@Nullable
                                               Revision minRevision,
                                               @NonNull
                                               java.lang.String path)
Creates a Dependency with the given minRevision and path.


createDependenciesType

@NonNull
public abstract RepoPackageImpl.Dependencies createDependenciesType()

createCompleteType

@NonNull
public abstract Archive.CompleteType createCompleteType()

createPatchType

@NonNull
protected abstract Archive.PatchType createPatchType()

createChannelRefType

public abstract RemotePackageImpl.ChannelRef createChannelRefType()