1 /*******************************************************************************2 * Copyright (c) 2000, 2006 IBM Corporation and others.3 * All rights reserved. This program and the accompanying materials4 * are made available under the terms of the Eclipse Public License v1.05 * which accompanies this distribution, and is available at6 * http://www.eclipse.org/legal/epl-v10.html7 *8 * Contributors:9 * IBM Corporation - initial API and implementation10 *******************************************************************************/11 package org.eclipse.pde.internal.core.isite;12 13 import org.eclipse.core.runtime.CoreException;14 15 /**16 * The top-level model object of the Eclipse update site model.17 */18 public interface ISite extends ISiteObject {19 String P_URL = "URL"; //$NON-NLS-1$20 21 String P_MIRRORS_URL = "mirrorsURL"; //$NON-NLS-1$22 23 String P_TYPE = "type"; //$NON-NLS-1$24 25 String P_DESCRIPTION = "description"; //$NON-NLS-1$26 27 void setType(String type) throws CoreException;28 29 String getType();30 31 void setURL(String url) throws CoreException;32 33 void setMirrorsURL(String url) throws CoreException;34 35 String getURL();36 37 String getMirrorsURL();38 39 ISiteDescription getDescription();40 41 void setDescription(ISiteDescription description) throws CoreException;42 43 void addFeatures(ISiteFeature[] features) throws CoreException;44 45 void addArchives(ISiteArchive[] archives) throws CoreException;46 47 void addCategoryDefinitions(ISiteCategoryDefinition[] defs)48 throws CoreException;49 50 void removeFeatures(ISiteFeature[] features) throws CoreException;51 52 void removeArchives(ISiteArchive[] archives) throws CoreException;53 54 void removeCategoryDefinitions(ISiteCategoryDefinition[] defs)55 throws CoreException;56 57 ISiteFeature[] getFeatures();58 59 ISiteArchive[] getArchives();60 61 ISiteCategoryDefinition[] getCategoryDefinitions();62 63 boolean isValid();64 }65