Main Page   Packages   Class Hierarchy   Compound List   File List   Compound Members  

nodegetfirstchildnull Class Reference

Inherits DOMTestCase.

List of all members.

Public Methods

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

Static Public Methods

void main (String[] args)


Detailed Description

If there is not a first child then the "getFirstChild()"

method returns null.

Retrieve the Text node form the second child of the first

employee and invoke the "getFirstChild()" method. It

should return null.

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

Definition at line 51 of file nodegetfirstchildnull.java.


Constructor & Destructor Documentation

nodegetfirstchildnull::nodegetfirstchildnull DOMTestDocumentBuilderFactory    factory [inline]
 

Definition at line 53 of file nodegetfirstchildnull.java.

00054  {
00055       super(factory);
00056 
00057    }


Member Function Documentation

String nodegetfirstchildnull::getTargetURI   [inline, virtual]
 

Reimplemented from DOMTest.

Definition at line 77 of file nodegetfirstchildnull.java.

00077                                 {
00078       return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/nodegetfirstchildnull";
00079    }

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

Definition at line 80 of file nodegetfirstchildnull.java.

References DOMTestCase::doMain().

00080                                           {
00081         DOMTestCase.doMain(nodegetfirstchildnull.class,args);
00082    }

void nodegetfirstchildnull::runTest   [inline, virtual]
 

Reimplemented from DOMTestCase.

Definition at line 59 of file nodegetfirstchildnull.java.

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

00059                                                     {
00060       Document doc;
00061       NodeList elementList;
00062       Node employeeNode;
00063       NodeList employeeList;
00064       Node secondChildNode;
00065       Node textNode;
00066       Node noChildNode;
00067       doc = load("staff");
00068       elementList = doc.getElementsByTagName("employee");
00069       employeeNode = elementList.item(0);
00070       employeeList = employeeNode.getChildNodes();
00071       secondChildNode = employeeList.item(1);
00072       textNode = secondChildNode.getFirstChild();
00073       noChildNode = textNode.getFirstChild();
00074       assertNull("nodeGetFirstChildNullAssert1",noChildNode);
00075       
00076    }


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