Eclipse Platform
Release 3.6

org.eclipse.equinox.p2.repository.artifact
Interface IFileArtifactRepository

All Superinterfaces:
IAdaptable, IArtifactRepository, IQueryable<IArtifactKey>, IRepository<IArtifactKey>

public interface IFileArtifactRepository
extends IArtifactRepository

An artifact repository whose artifacts are available in the local file system.

Since:
2.0
Restriction:
This interface is not intended to be implemented by clients.
Restriction:
This interface is not intended to be extended by clients.

Field Summary
 
Fields inherited from interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
CODE_RETRY
 
Fields inherited from interface org.eclipse.equinox.p2.repository.IRepository
ENABLED, NONE, PREFERENCE_NODE, PROP_COMPRESSED, PROP_DESCRIPTION, PROP_MIRRORS_BASE_URL, PROP_MIRRORS_URL, PROP_NAME, PROP_NICKNAME, PROP_PASSWORD, PROP_SYSTEM, PROP_TIMESTAMP, PROP_USERNAME, TYPE_ARTIFACT, TYPE_METADATA
 
Method Summary
 File getArtifactFile(IArtifactDescriptor descriptor)
          Return the location of the local file corresponding to the given artifact descriptor, or null if not available.
 File getArtifactFile(IArtifactKey key)
          Return the location of the full local file corresponding to the given artifact key to the given key, or null if not available.
 
Methods inherited from interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
addDescriptor, addDescriptors, contains, contains, createArtifactDescriptor, createArtifactKey, descriptorQueryable, executeBatch, getArtifact, getArtifactDescriptors, getArtifacts, getOutputStream, getRawArtifact, removeAll, removeDescriptor, removeDescriptor
 
Methods inherited from interface org.eclipse.equinox.p2.repository.IRepository
getDescription, getLocation, getName, getProperties, getProperty, getProvider, getProvisioningAgent, getType, getVersion, isModifiable, setProperty
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.equinox.p2.query.IQueryable
query
 

Method Detail

getArtifactFile

File getArtifactFile(IArtifactKey key)
Return the location of the full local file corresponding to the given artifact key to the given key, or null if not available.

Parameters:
key - the artifact key for the file to be returned
Returns:
the location of the requested artifact ornull if not available

getArtifactFile

File getArtifactFile(IArtifactDescriptor descriptor)
Return the location of the local file corresponding to the given artifact descriptor, or null if not available.

Parameters:
descriptor - the artifact descriptor for the file to be returned
Returns:
the location of the requested descriptor ornull if not available

Eclipse Platform
Release 3.6

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.