1 /*******************************************************************************
2 * Copyright (c) 2000, 2003 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
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package net.sourceforge.phpdt.core.jdom;
14 * Represents a package declaration. The corresponding syntactic unit is
15 * PackageDeclaration (JLS2 7.4). A Package has no children, and its parent is a
18 * This interface is not intended to be implemented by clients.
21 public interface IDOMPackage extends IDOMNode {
23 * The <code>IDOMPackage</code> refinement of this <code>IDOMNode</code>
24 * method returns the name of this package declaration, or <code>null</code>
25 * if it has none. The syntax for a package name corresponds to PackageName
26 * as defined by PackageDeclaration (JLS2 7.4).
28 public String getName();
31 * The <code>IDOMPackage</code> refinement of this <code>IDOMNode</code>
32 * method sets the name of this package declaration. The syntax for a
33 * package name corresponds to PackageName as defined by PackageDeclaration
34 * (JLS2 7.4). A <code>null</code> name indicates an empty package
35 * declaration; that is, <code>getContents</code> returns the empty
38 public void setName(String name);