com.android.repository.impl.meta
Class LocalPackageImpl

java.lang.Object
  extended by com.android.repository.impl.meta.RepoPackageImpl
      extended by com.android.repository.impl.meta.LocalPackageImpl
All Implemented Interfaces:
LocalPackage, RepoPackage, java.lang.Comparable<RepoPackage>
Direct Known Subclasses:
LocalPackage

public abstract class LocalPackageImpl
extends RepoPackageImpl
implements LocalPackage

Implementation of LocalPackage that can be saved and loaded using JAXB.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.android.repository.impl.meta.RepoPackageImpl
RepoPackageImpl.Archives, RepoPackageImpl.Dependencies, RepoPackageImpl.UsesLicense
 
Field Summary
 
Fields inherited from interface com.android.repository.api.RepoPackage
PATH_SEPARATOR
 
Constructor Summary
LocalPackageImpl()
           
 
Method Summary
static LocalPackageImpl create(RepoPackage p, RepoManager repoManager)
          Creates a LocalPackageImpl from an arbitrary RepoPackage.
 java.io.File getLocation()
          Gets the installed location of this package.
 void setInstalledPath(java.io.File path)
          Specifies the path at which this package is installed.
 
Methods inherited from class com.android.repository.impl.meta.RepoPackageImpl
addDependency, compareTo, equals, getAllDependencies, getDependencies, getDisplayName, getLicense, getPath, getRevision, getTypeDetails, getUsesLicense, getVersion, hashCode, isObsolete, obsolete, setDependencies, setDisplayName, setLicense, setObsolete, setPath, setRevision, setTypeDetails, setUsesLicense, setVersion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.android.repository.api.RepoPackage
createFactory, getAllDependencies, getDisplayName, getLicense, getPath, getTypeDetails, getVersion, obsolete
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

LocalPackageImpl

public LocalPackageImpl()
Method Detail

getLocation

@NonNull
public java.io.File getLocation()
Description copied from interface: LocalPackage
Gets the installed location of this package.

Specified by:
getLocation in interface LocalPackage

setInstalledPath

public void setInstalledPath(@NonNull
                             java.io.File path)
Description copied from interface: LocalPackage
Specifies the path at which this package is installed. This should be called directly after the package is created.

Specified by:
setInstalledPath in interface LocalPackage

create

@NonNull
public static LocalPackageImpl create(@NonNull
                                              RepoPackage p,
                                              @NonNull
                                              RepoManager repoManager)
Creates a LocalPackageImpl from an arbitrary RepoPackage. Useful if you have a RepoPackage of unknown concrete type and want to marshal it using JAXB.