public abstract class RemotePackageImpl extends RepoPackageImpl implements RemotePackage
RemotePackage that can be created as part of a Repository
by JAXB.| Modifier and Type | Class and Description |
|---|---|
static class |
RemotePackageImpl.ChannelRef |
RepoPackageImpl.Archives, RepoPackageImpl.Dependencies, RepoPackageImpl.UsesLicensePATH_SEPARATOR| Constructor and Description |
|---|
RemotePackageImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addArchive(Archive archive) |
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 RemotePackageImpl |
create(RemotePackage remotePackage)
Creates a
RemotePackageImpl from an arbitrary RemotePackage. |
java.util.List<Archive> |
getAllArchives()
Convenience method to get all the
Archives included in this package. |
Archive |
getArchive() |
protected abstract RepoPackageImpl.Archives |
getArchives() |
Channel |
getChannel()
Gets the update channel (e.g.
|
protected abstract RemotePackageImpl.ChannelRef |
getChannelRef()
Gets the actual
RemotePackageImpl.ChannelRef. |
java.io.File |
getInstallDir(RepoManager manager,
ProgressIndicator progress)
Gets the path into which this
RemotePackage should be installed. |
RepositorySource |
getSource() |
protected abstract void |
setArchives(RepoPackageImpl.Archives archives) |
void |
setChannel(Channel c)
Convenience method to add a reference to the given channel to this package.
|
protected abstract void |
setChannelRef(RemotePackageImpl.ChannelRef cr)
Sets the actual
RemotePackageImpl.ChannelRef. |
void |
setSource(RepositorySource source) |
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, obsoletepublic void setSource(@NonNull
RepositorySource source)
setSource in interface RemotePackagesource - The RepositorySource from which we got this package.@Nullable public Archive getArchive()
getArchive in interface RemotePackagenull if there is none.@NonNull public java.util.List<Archive> getAllArchives()
Archives included in this package.@NonNull protected abstract RepoPackageImpl.Archives getArchives()
protected abstract void setArchives(@Nullable
RepoPackageImpl.Archives archives)
@NonNull public RepositorySource getSource()
getSource in interface RemotePackageRepositorySource from which we got this package.@Nullable protected abstract RemotePackageImpl.ChannelRef getChannelRef()
RemotePackageImpl.ChannelRef. Probably you actually want getChannel().@NonNull public Channel getChannel()
RemotePackagegetChannel in interface RemotePackage@NonNull
public java.io.File getInstallDir(@NonNull
RepoManager manager,
@NonNull
ProgressIndicator progress)
RemotePackageRemotePackage should be installed.getInstallDir in interface RemotePackagepublic void setChannel(@Nullable
Channel c)
protected abstract void setChannelRef(@Nullable
RemotePackageImpl.ChannelRef cr)
RemotePackageImpl.ChannelRef. Probably you actually want setChannel(Channel).@NonNull public static RemotePackageImpl create(@NonNull RemotePackage remotePackage)
RemotePackageImpl from an arbitrary RemotePackage. Useful if you
have a RepoPackage of unknown concrete type and want to marshal it using JAXB.
Note that only the compatible archive (if any) will be included.public void addArchive(@NonNull
Archive archive)
@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