01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.internal.core.isite;
11:
12: import org.eclipse.core.runtime.CoreException;
13:
14: /**
15: * The top-level model object of the Eclipse update site model.
16: */
17: public interface ISite extends ISiteObject {
18: String P_URL = "URL"; //$NON-NLS-1$
19:
20: String P_MIRRORS_URL = "mirrorsURL"; //$NON-NLS-1$
21:
22: String P_TYPE = "type"; //$NON-NLS-1$
23:
24: String P_DESCRIPTION = "description"; //$NON-NLS-1$
25:
26: void setType(String type) throws CoreException;
27:
28: String getType();
29:
30: void setURL(String url) throws CoreException;
31:
32: void setMirrorsURL(String url) throws CoreException;
33:
34: String getURL();
35:
36: String getMirrorsURL();
37:
38: ISiteDescription getDescription();
39:
40: void setDescription(ISiteDescription description)
41: 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: }
|