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.core.build;
11:
12: import org.eclipse.core.runtime.CoreException;
13: import org.eclipse.pde.core.IWritable;
14:
15: /**
16: * The top-level model object of the model that is created from
17: * "build.properties" file.
18: *
19: */
20: public interface IBuild extends IWritable {
21: /**
22: * Adds a new build entry. This method can throw a CoreException if the
23: * model is not editable.
24: *
25: * @param entry
26: * an entry to be added
27: */
28: void add(IBuildEntry entry) throws CoreException;
29:
30: /**
31: * Returns all the build entries in this object.
32: *
33: * @return an array of build entries
34: */
35: IBuildEntry[] getBuildEntries();
36:
37: /**
38: * Returns the build entry with the specified name.
39: *
40: * @param name
41: * name of the desired entry
42: * @return the entry object with the specified name, or <samp>null</samp>
43: * if not found.
44: */
45: IBuildEntry getEntry(String name);
46:
47: /**
48: * Removes a build entry. This method can throw a CoreException if the model
49: * is not editable.
50: *
51: * @param entry
52: * an entry to be removed
53: */
54: void remove(IBuildEntry entry) throws CoreException;
55: }
|