public abstract class LocalPackageImpl extends RepoPackageImpl implements LocalPackage
LocalPackage
that can be saved and loaded using JAXB.RepoPackageImpl.Archives, RepoPackageImpl.Dependencies, RepoPackageImpl.UsesLicense
PATH_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 p)
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, setVersion
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
createFactory, getAllDependencies, getDisplayName, getLicense, getPath, getTypeDetails, getVersion, obsolete
@NonNull public java.io.File getLocation()
LocalPackage
getLocation
in interface LocalPackage
public void setInstalledPath(@NonNull java.io.File path)
LocalPackage
setInstalledPath
in interface LocalPackage
@NonNull public static LocalPackageImpl create(@NonNull RepoPackage p)
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()
RepoPackage
this
if it already can be marshalled).asMarshallable
in interface RepoPackage
public void addTo(@NonNull Repository repo)
RepoPackageImpl
Repository
, overwriting existing packages if
necessary.addTo
in class RepoPackageImpl