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, nonNullclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetArtifactDescriptors, getRawArtifactgetArtifactpublic 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)
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,
Set<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> result)
getArtifactDescriptorsOfAllSources in class CompositeArtifactProviderBaseImplpublic File getArtifactFile(org.eclipse.equinox.p2.metadata.IArtifactKey key)
IArtifactFileProvidergetArtifactFile in interface IArtifactFileProviderkey - An artifact keynull the given artifact does
not exist.public 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, 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, List<org.eclipse.core.runtime.IStatus> statusCollector) throws ArtifactSinkException
getRawArtifactFromAnySource in class CompositeArtifactProviderBaseImplArtifactSinkExceptionprotected org.eclipse.core.runtime.Status getArtifactNotFoundError(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>Copyright © 2008-2015 Eclipse Foundation. All Rights Reserved.