blob: 1bfada5b9c5edb5870eb09e5bfcad03e9362bf5a [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.equinox.p2.repository;
import java.net.URI;
import java.util.List;
/**
* @since 2.0
*/
public interface ICompositeRepository<T> extends IRepository<T> {
/**
*
* @return a list of URIs containing the locations of the children repositories
*/
public abstract List<URI> getChildren();
/**
* Removes all child repositories
*/
public abstract void removeAllChildren();
/**
* Removes specified URI from list of child repositories.
* Does nothing if specified URI is not a child repository
* @param child
*/
public abstract void removeChild(URI child);
/**
* Adds a specified URI to list of child repositories.
* Does nothing if URI is a duplicate of an existing child repository.
* @param child
*/
public abstract void addChild(URI child);
}