Main Page   Packages   Class Hierarchy   Compound List   File List   Compound Members  

nodechildnodesempty Class Reference

Inherits DOMTestCase.

List of all members.

Public Methods

 nodechildnodesempty (DOMTestDocumentBuilderFactory factory)
void runTest () throws java.lang.Throwable
String getTargetURI ()

Static Public Methods

void main (String[] args)


Detailed Description

The "getChildNodes()" method returns a NodeList

that contains all children of this node. If there

are not any children, this is a NodeList that does not

contain any nodes.

Retrieve the Text node from the second child of the second

employee and invoke the "getChildNodes()" method. The

NodeList returned should not have any nodes.

Author:
NIST , Mary Brady
See also:
http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1451460987

Definition at line 55 of file nodechildnodesempty.java.


Constructor & Destructor Documentation

nodechildnodesempty::nodechildnodesempty DOMTestDocumentBuilderFactory    factory [inline]
 

Definition at line 57 of file nodechildnodesempty.java.

00058  {
00059       super(factory);
00060 
00061    }


Member Function Documentation

String nodechildnodesempty::getTargetURI   [inline, virtual]
 

Reimplemented from DOMTest.

Definition at line 81 of file nodechildnodesempty.java.

00081                                 {
00082       return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/nodechildnodesempty";
00083    }

void nodechildnodesempty::main String    args[] [inline, static]
 

Definition at line 84 of file nodechildnodesempty.java.

References DOMTestCase::doMain().

00084                                           {
00085         DOMTestCase.doMain(nodechildnodesempty.class,args);
00086    }

void nodechildnodesempty::runTest   [inline, virtual]
 

Reimplemented from DOMTestCase.

Definition at line 63 of file nodechildnodesempty.java.

References DOMTestCase::assertSize(), and DOMTest::load().

00063                                                     {
00064       Document doc;
00065       NodeList elementList;
00066       Node employeeNode;
00067       NodeList childList;
00068       Node secondCNode;
00069       Node textNode;
00070       NodeList CNodeList;
00071       doc = load("staff");
00072       elementList = doc.getElementsByTagName("employee");
00073       employeeNode = elementList.item(1);
00074       childList = employeeNode.getChildNodes();
00075       secondCNode = childList.item(1);
00076       textNode = secondCNode.getFirstChild();
00077       CNodeList = textNode.getChildNodes();
00078       assertSize("nodeChildNodesEmptyAssert1",0,CNodeList);
00079       
00080    }


The documentation for this class was generated from the following file:
Generated on Thu Feb 14 19:46:59 2002 for DOM Level 1 Core Test Suite by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001