public interface IDOMPackage extends IDOMNode
COMPILATION_UNIT, FIELD, IMPORT, INITIALIZER, METHOD, PACKAGE, TYPE| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Deprecated.
The
IDOMPackage refinement of this IDOMNode
method returns the name of this package declaration, or null
if it has none. |
void |
setName(java.lang.String name)
Deprecated.
The
IDOMPackage refinement of this IDOMNode
method sets the name of this package declaration. |
addChild, canHaveChildren, clone, getCharacters, getChild, getChildren, getContents, getFirstChild, getJavaElement, getNextNode, getNodeType, getParent, getPreviousNode, insertSibling, isAllowableChild, isSignatureEqual, removejava.lang.String getName()
IDOMPackage refinement of this IDOMNode
method returns the name of this package declaration, or null
if it has none. The syntax for a package name corresponds to PackageName
as defined by PackageDeclaration (JLS2 7.4).void setName(java.lang.String name)
IDOMPackage refinement of this IDOMNode
method sets the name of this package declaration. The syntax for a package
name corresponds to PackageName as defined by PackageDeclaration (JLS2 7.4).
A null name indicates an empty package declaration; that is,
getContents returns the empty string.