1) Moved net.sourceforge.phpeclipse.ui\src\net\sourceforge\phpdt back to net.sourcefo...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / core / IImportContainer.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package net.sourceforge.phpdt.core;
12
13 /**
14  * Represents an import container is a child of a Java compilation unit that
15  * contains all (and only) the import declarations. If a compilation unit has no
16  * import declarations, no import container will be present.
17  * <p>
18  * This interface is not intended to be implemented by clients.
19  * </p>
20  */
21 public interface IImportContainer extends IJavaElement, IParent,
22                 ISourceReference {
23         /**
24          * Returns the first import declaration in this import container with the
25          * given name. This is a handle-only method. The import declaration may or
26          * may not exist.
27          * 
28          * @param name
29          *            the given name
30          * 
31          * @return the first import declaration in this import container with the
32          *         given name
33          */
34         IImportDeclaration getImport(String name);
35 }