KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > core > build > IBuild


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.core.build;
12 import org.eclipse.core.runtime.CoreException;
13 import org.eclipse.pde.core.IWritable;
14 /**
15  * The top-level model object of the model that is created from
16  * "build.properties" file.
17  *
18  */

19 public interface IBuild extends IWritable {
20     /**
21      * Adds a new build entry. This method can throw a CoreException if the
22      * model is not editable.
23      *
24      * @param entry
25      * an entry to be added
26      */

27     void add(IBuildEntry entry) throws CoreException;
28     /**
29      * Returns all the build entries in this object.
30      *
31      * @return an array of build entries
32      */

33     IBuildEntry[] getBuildEntries();
34     /**
35      * Returns the build entry with the specified name.
36      *
37      * @param name
38      * name of the desired entry
39      * @return the entry object with the specified name, or <samp>null</samp>
40      * if not found.
41      */

42     IBuildEntry getEntry(String JavaDoc name);
43     /**
44      * Removes a build entry. This method can throw a CoreException if the model
45      * is not editable.
46      *
47      * @param entry
48      * an entry to be removed
49      */

50     void remove(IBuildEntry entry) throws CoreException;
51 }
52
Popular Tags