|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMetadataRepository
A metadata repository stores information about a set of installable units
This interface is not intended to be implemented by clients. Metadata repository
implementations must subclass AbstractMetadataRepository
rather than
implementing this interface directly.
Field Summary |
---|
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 | |
---|---|
void |
addInstallableUnits(Collection<IInstallableUnit> installableUnits)
Add the given installable units to this repository. |
void |
addInstallableUnits(IInstallableUnit[] installableUnits)
Deprecated. use addInstallableUnits(Collection) |
void |
addReference(URI location,
String nickname,
int type,
int options)
Adds a reference to another repository to this repository. |
void |
removeAll()
Remove all installable units from this repository. |
boolean |
removeInstallableUnits(Collection<IInstallableUnit> installableUnits)
Removes all installable units in the given collection from this repository. |
boolean |
removeInstallableUnits(IInstallableUnit[] installableUnits,
IProgressMonitor monitor)
Deprecated. use removeInstallableUnits(Collection) |
Methods inherited from interface org.eclipse.equinox.p2.repository.IRepository |
---|
getDescription, getLocation, getName, getProperties, getProvider, getProvisioningAgent, getType, getVersion, isModifiable, setDescription, setName, setProperty, setProvider |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Methods inherited from interface org.eclipse.equinox.p2.query.IQueryable |
---|
query |
Method Detail |
---|
void addInstallableUnits(IInstallableUnit[] installableUnits)
addInstallableUnits(Collection)
void addInstallableUnits(Collection<IInstallableUnit> installableUnits)
installableUnits
- the installable units to addvoid addReference(URI location, String nickname, int type, int options)
IMetadataRepositoryManager
, its references
are automatically added to the repository manager's set of known repositories.
Note that this method does not add the contents of the given repository to this repository, but merely adds the location of another repository to the metadata of this repository.
The IRepository.ENABLED
option flag controls whether the
referenced repository should be marked as enabled when added to the repository
manager. If this flag is set, the repository will be marked as enabled when
added to the repository manager. If this flag is missing, the repository will
be marked as disabled.
location
- the location of the repository to addnickname
- The nickname of the repository, or null
type
- the repository type (currently either IRepository.TYPE_METADATA
or IRepository.TYPE_ARTIFACT
).options
- bit-wise or of option constants (currently either
IRepository.ENABLED
or IRepository.NONE
).IRepositoryManager.setEnabled(URI, boolean)
boolean removeInstallableUnits(IInstallableUnit[] installableUnits, IProgressMonitor monitor)
removeInstallableUnits(Collection)
boolean removeInstallableUnits(Collection<IInstallableUnit> installableUnits)
installableUnits
- the installable units to remove
true
if any units were actually removed, and
false
otherwisevoid removeAll()
|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.