Interface ICompositeRepository<T>
- Type Parameters:
T
- The type of repository content. Typically this is eitherIInstallableUnit
orIArtifactKey
.
- All Superinterfaces:
IAdaptable
,IQueryable<T>
,IRepository<T>
A composite repository doesn't directly contain any contents, but rather contains
only a list of child repositories. The composite repository aggregates content
from the children and acts as a single repository containing the union of all
child contents. When a composite repository is queried programmatically,
it will appear to contain all elements that currently exist in one or more
of its children.
- 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.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
Modifier and TypeMethodDescriptionvoid
Adds a specified URI to list of child repositories.Returns a list of URIs containing the locations of the children repositoriesvoid
Removes all child repositoriesvoid
removeChild
(URI child) Removes the specified URI from the list of child repositories.Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
Methods inherited from interface org.eclipse.equinox.p2.query.IQueryable
query
Methods inherited from interface org.eclipse.equinox.p2.repository.IRepository
contains, getDescription, getLocation, getName, getProperties, getProperty, getProvider, getProvisioningAgent, getType, getVersion, isModifiable, setProperty, setProperty
-
Method Details
-
addChild
Adds a specified URI to list of child repositories. Does nothing if URI is a duplicate of an existing child repository.- Parameters:
child
- The child to add.
-
getChildren
Returns a list of URIs containing the locations of the children repositories- Returns:
- a list of URIs containing the locations of the children repositories
-
removeAllChildren
void removeAllChildren()Removes all child repositories -
removeChild
Removes the specified URI from the list of child repositories. This method has no effect if the specified URI is not a child repository- Parameters:
child
- The child to remove
-