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.resources.IFile;
13: import org.eclipse.core.runtime.CoreException;
14: import org.eclipse.pde.internal.core.ifeature.IVersionable;
15:
16: public interface ISiteFeature extends IVersionable, ISiteObject {
17: String P_TYPE = "type"; //$NON-NLS-1$
18: String P_URL = "url"; //$NON-NLS-1$
19: String P_OS = "os"; //$NON-NLS-1$
20: String P_WS = "ws"; //$NON-NLS-1$
21: String P_NL = "nl"; //$NON-NLS-1$
22: String P_ARCH = "arch"; //$NON-NLS-1$
23: String P_PATCH = "patch"; //$NON-NLS-1$
24:
25: void addCategories(ISiteCategory[] categories) throws CoreException;
26:
27: void removeCategories(ISiteCategory[] categories)
28: throws CoreException;
29:
30: ISiteCategory[] getCategories();
31:
32: String getType();
33:
34: String getURL();
35:
36: String getOS();
37:
38: String getNL();
39:
40: String getArch();
41:
42: String getWS();
43:
44: boolean isPatch();
45:
46: void setType(String type) throws CoreException;
47:
48: void setURL(String url) throws CoreException;
49:
50: void setOS(String os) throws CoreException;
51:
52: void setWS(String ws) throws CoreException;
53:
54: void setArch(String arch) throws CoreException;
55:
56: void setNL(String nl) throws CoreException;
57:
58: void setIsPatch(boolean patch) throws CoreException;
59:
60: IFile getArchiveFile();
61: }
|