KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > core > isite > ISite


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

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 JavaDoc P_URL = "URL"; //$NON-NLS-1$
20

21     String JavaDoc P_MIRRORS_URL = "mirrorsURL"; //$NON-NLS-1$
22

23     String JavaDoc P_TYPE = "type"; //$NON-NLS-1$
24

25     String JavaDoc P_DESCRIPTION = "description"; //$NON-NLS-1$
26

27     void setType(String JavaDoc type) throws CoreException;
28
29     String JavaDoc getType();
30
31     void setURL(String JavaDoc url) throws CoreException;
32
33     void setMirrorsURL(String JavaDoc url) throws CoreException;
34
35     String JavaDoc getURL();
36
37     String JavaDoc 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
Popular Tags