public class CompositeArtifactProvider extends CompositeArtifactProviderBaseImpl implements IRawArtifactFileProvider
Constructor and Description |
---|
CompositeArtifactProvider(IRawArtifactFileProvider... components) |
CompositeArtifactProvider(List<IRawArtifactFileProvider> providers) |
CompositeArtifactProvider(List<IRawArtifactFileProvider> providers1,
List<IRawArtifactFileProvider> providers2) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
Returns
true if this a provider for an artifact in the given format |
boolean |
contains(org.eclipse.equinox.p2.metadata.IArtifactKey key)
Returns
true if this is a provider for the given artifact. |
protected void |
getArtifactDescriptorsOfAllSources(org.eclipse.equinox.p2.metadata.IArtifactKey key,
Set<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> result) |
File |
getArtifactFile(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
Returns the file system location of the given artifact in the given format.
|
File |
getArtifactFile(org.eclipse.equinox.p2.metadata.IArtifactKey key)
Returns the file system location of the given artifact.
|
protected void |
getArtifactFromAnySource(IArtifactSink sink,
List<org.eclipse.core.runtime.IStatus> statusCollector,
org.eclipse.core.runtime.IProgressMonitor monitor) |
protected org.eclipse.core.runtime.Status |
getArtifactNotFoundError(String artifact) |
protected void |
getRawArtifactFromAnySource(IRawArtifactSink sink,
org.eclipse.core.runtime.IProgressMonitor monitor,
List<org.eclipse.core.runtime.IStatus> statusCollector) |
org.eclipse.equinox.p2.query.IQueryResult<org.eclipse.equinox.p2.metadata.IArtifactKey> |
query(org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IArtifactKey> query,
org.eclipse.core.runtime.IProgressMonitor monitor) |
getArtifact, getArtifactDescriptors, getRawArtifact, isFatal, nonNull
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getArtifactDescriptors, getRawArtifact
getArtifact
public CompositeArtifactProvider(IRawArtifactFileProvider... components)
public CompositeArtifactProvider(List<IRawArtifactFileProvider> providers)
public CompositeArtifactProvider(List<IRawArtifactFileProvider> providers1, List<IRawArtifactFileProvider> providers2)
public boolean contains(org.eclipse.equinox.p2.metadata.IArtifactKey key)
IArtifactProvider
true
if this is a provider for the given artifact.contains
in interface IArtifactProvider
key
- An artifact keytrue
if this instance can provide the artifact for the given keypublic boolean contains(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
IRawArtifactProvider
true
if this a provider for an artifact in the given formatcontains
in interface IRawArtifactProvider
descriptor
- An artifact descriptortrue
if this instance can provide the artifact as raw artifact in the
described formatprotected void getArtifactDescriptorsOfAllSources(org.eclipse.equinox.p2.metadata.IArtifactKey key, Set<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> result)
getArtifactDescriptorsOfAllSources
in class CompositeArtifactProviderBaseImpl
public File getArtifactFile(org.eclipse.equinox.p2.metadata.IArtifactKey key)
IArtifactFileProvider
getArtifactFile
in interface IArtifactFileProvider
key
- An artifact keynull
the given artifact does
not exist.public File getArtifactFile(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
IRawArtifactFileProvider
getArtifactFile
in interface IRawArtifactFileProvider
descriptor
- The key and format of an artifactnull
the that artifact
does not exist in the given format.protected void getArtifactFromAnySource(IArtifactSink sink, List<org.eclipse.core.runtime.IStatus> statusCollector, org.eclipse.core.runtime.IProgressMonitor monitor) throws ArtifactSinkException
getArtifactFromAnySource
in class CompositeArtifactProviderBaseImpl
ArtifactSinkException
protected void getRawArtifactFromAnySource(IRawArtifactSink sink, org.eclipse.core.runtime.IProgressMonitor monitor, List<org.eclipse.core.runtime.IStatus> statusCollector) throws ArtifactSinkException
getRawArtifactFromAnySource
in class CompositeArtifactProviderBaseImpl
ArtifactSinkException
protected org.eclipse.core.runtime.Status getArtifactNotFoundError(String artifact)
getArtifactNotFoundError
in class CompositeArtifactProviderBaseImpl
public org.eclipse.equinox.p2.query.IQueryResult<org.eclipse.equinox.p2.metadata.IArtifactKey> query(org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IArtifactKey> query, org.eclipse.core.runtime.IProgressMonitor monitor)
query
in interface org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IArtifactKey>
Copyright © 2008–2022 Eclipse Foundation. All rights reserved.