Eclipse Platform
Release 3.6

org.eclipse.equinox.p2.repository
Interface ICompositeRepository<T>

Type Parameters:
T - The type of repository content. Typically this is either IInstallableUnit or IArtifactKey.
All Superinterfaces:
IAdaptable, IQueryable<T>, IRepository<T>

public interface ICompositeRepository<T>
extends 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
 void addChild(URI child)
          Adds a specified URI to list of child repositories.
 List<URI> getChildren()
          Returns a list of URIs containing the locations of the children repositories
 void removeAllChildren()
          Removes all child repositories
 void removeChild(URI child)
          Removes the specified URI from the list of child repositories.
 
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

addChild

void addChild(URI child)
Adds a specified URI to list of child repositories. Does nothing if URI is a duplicate of an existing child repository.

Parameters:
child -

getChildren

List<URI> 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

void removeChild(URI child)
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

Eclipse Platform
Release 3.6

Guidelines for using Eclipse APIs.

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