public class CompositeArtifactProvider extends CompositeArtifactProviderBaseImpl implements IRawArtifactFileProvider
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<IRawArtifactFileProvider> |
components |
| Constructor and Description |
|---|
CompositeArtifactProvider(IRawArtifactFileProvider... components) |
CompositeArtifactProvider(java.util.List<IRawArtifactFileProvider> providers) |
CompositeArtifactProvider(java.util.List<IRawArtifactFileProvider> providers1,
java.util.List<IRawArtifactFileProvider> providers2) |
| Modifier and Type | Method and Description |
|---|---|
private org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IArtifactKey> |
componentsAsQueriable() |
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,
java.util.Set<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> result) |
java.io.File |
getArtifactFile(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
Returns the file system location of the given artifact in the given format.
|
java.io.File |
getArtifactFile(org.eclipse.equinox.p2.metadata.IArtifactKey key)
Returns the file system location of the given artifact.
|
protected void |
getArtifactFromAnySource(IArtifactSink sink,
java.util.List<org.eclipse.core.runtime.IStatus> statusCollector,
org.eclipse.core.runtime.IProgressMonitor monitor) |
protected org.eclipse.core.runtime.Status |
getArtifactNotFoundError(java.lang.String artifact) |
protected void |
getRawArtifactFromAnySource(IRawArtifactSink sink,
org.eclipse.core.runtime.IProgressMonitor monitor,
java.util.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, nonNullclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetArtifactDescriptors, getRawArtifactgetArtifactprivate java.util.List<IRawArtifactFileProvider> components
public CompositeArtifactProvider(IRawArtifactFileProvider... components)
public CompositeArtifactProvider(java.util.List<IRawArtifactFileProvider> providers)
public CompositeArtifactProvider(java.util.List<IRawArtifactFileProvider> providers1, java.util.List<IRawArtifactFileProvider> providers2)
public boolean contains(org.eclipse.equinox.p2.metadata.IArtifactKey key)
IArtifactProvidertrue if this is a provider for the given artifact.contains in interface IArtifactProviderkey - An artifact keytrue if this instance can provide the artifact for the given keypublic boolean contains(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
IRawArtifactProvidertrue if this a provider for an artifact in the given formatcontains in interface IRawArtifactProviderdescriptor - 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,
java.util.Set<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> result)
getArtifactDescriptorsOfAllSources in class CompositeArtifactProviderBaseImplpublic java.io.File getArtifactFile(org.eclipse.equinox.p2.metadata.IArtifactKey key)
IArtifactFileProvidergetArtifactFile in interface IArtifactFileProviderkey - An artifact keynull the given artifact does
not exist.public java.io.File getArtifactFile(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
IRawArtifactFileProvidergetArtifactFile in interface IRawArtifactFileProviderdescriptor - The key and format of an artifactnull the that artifact
does not exist in the given format.protected void getArtifactFromAnySource(IArtifactSink sink, java.util.List<org.eclipse.core.runtime.IStatus> statusCollector, org.eclipse.core.runtime.IProgressMonitor monitor) throws ArtifactSinkException
getArtifactFromAnySource in class CompositeArtifactProviderBaseImplArtifactSinkExceptionprotected void getRawArtifactFromAnySource(IRawArtifactSink sink, org.eclipse.core.runtime.IProgressMonitor monitor, java.util.List<org.eclipse.core.runtime.IStatus> statusCollector) throws ArtifactSinkException
getRawArtifactFromAnySource in class CompositeArtifactProviderBaseImplArtifactSinkExceptionprotected org.eclipse.core.runtime.Status getArtifactNotFoundError(java.lang.String artifact)
getArtifactNotFoundError in class CompositeArtifactProviderBaseImplpublic 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>private org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IArtifactKey> componentsAsQueriable()