com.android.repository.impl.meta
Class LocalPackageImpl
java.lang.Object
com.android.repository.impl.meta.RepoPackageImpl
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.
| 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 java.lang.Comparable |
compareTo |
LocalPackageImpl
public LocalPackageImpl()
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.