Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse JDT
Release 3.5

org.eclipse.jdt.core
Interface IParent

All Known Subinterfaces:
IClassFile, ICompilationUnit, IField, IImportContainer, IInitializer, IJavaModel, IJavaProject, IMember, IMethod, IPackageFragment, IPackageFragmentRoot, IType, ITypeRoot

public interface IParent

Common protocol for Java elements that contain other Java elements.

Restriction:
This interface is not intended to be implemented by clients.

Method Summary
  IJavaElement[] getChildren ()
          Returns the immediate children of this element.
 boolean hasChildren ()
          Returns whether this element has one or more immediate children.
 

Method Detail

getChildren

IJavaElement[] getChildren()
                           throws 
JavaModelException
Returns the immediate children of this element. Unless otherwise specified by the implementing element, the children are in no particular order.

Returns:
the immediate children of this element
Throws:
JavaModelException - if this element does not exist or if an exception occurs while accessing its corresponding resource

hasChildren

boolean hasChildren()
                    throws 
JavaModelException
Returns whether this element has one or more immediate children. This is a convenience method, and may be more efficient than testing whether getChildren is an empty array.

Returns:
true if the immediate children of this element, false otherwise
Throws:
JavaModelException - if this element does not exist or if an exception occurs while accessing its corresponding resource

Eclipse JDT
Release 3.5

Copyright (c) IBM Corp. and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire