public abstract class LocalPackageImpl extends RepoPackageImpl implements LocalPackage
LocalPackage that can be saved and loaded using JAXB.RepoPackageImpl.Archives, RepoPackageImpl.Dependencies, RepoPackageImpl.UsesLicensePATH_SEPARATOR| Constructor and Description |
|---|
LocalPackageImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTo(Repository repo)
Adds this package to the given
Repository, overwriting existing packages if
necessary. |
RepoPackageImpl |
asMarshallable()
Returns a package with the same content as this one that can be marshalled using JAXB
(or
this if it already can be marshalled). |
static LocalPackageImpl |
create(RepoPackage repoPackage)
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.
|
addDependency, compareTo, equals, getAllDependencies, getDependencies, getDisplayName, getLicense, getPath, getRevision, getTypeDetails, getUsesLicense, getVersion, hashCode, isObsolete, obsolete, setDependencies, setDisplayName, setLicense, setObsolete, setPath, setRevision, setTypeDetails, setUsesLicense, setVersionclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcreateFactory, getAllDependencies, getDisplayName, getLicense, getPath, getTypeDetails, getVersion, obsolete@NonNull public java.io.File getLocation()
LocalPackagegetLocation in interface LocalPackagepublic void setInstalledPath(@NonNull
java.io.File path)
LocalPackagesetInstalledPath in interface LocalPackage@NonNull public static LocalPackageImpl create(@NonNull RepoPackage repoPackage)
LocalPackageImpl from an arbitrary RepoPackage. Useful if you
have a RepoPackage of unknown concrete type and want to marshal it using JAXB.@NonNull public RepoPackageImpl asMarshallable()
RepoPackagethis if it already can be marshalled).asMarshallable in interface RepoPackagepublic void addTo(@NonNull
Repository repo)
RepoPackageImplRepository, overwriting existing packages if
necessary.addTo in class RepoPackageImpl