Main Page   Packages   Class Hierarchy   Compound List   File List   Compound Members  

nodegetprevioussiblingnull Class Reference

Inherits DOMTestCase.

List of all members.

Public Methods

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

Static Public Methods

void main (String[] args)


Detailed Description

If there is not a node immediately preceding this node the

"getPreviousSibling()" method returns null.

Retrieve the first child of the second employee and

invoke the "getPreviousSibling()" method. It should

be set to null.

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

Definition at line 51 of file nodegetprevioussiblingnull.java.


Constructor & Destructor Documentation

nodegetprevioussiblingnull::nodegetprevioussiblingnull DOMTestDocumentBuilderFactory    factory [inline]
 

Definition at line 53 of file nodegetprevioussiblingnull.java.

00054  {
00055       super(factory);
00056 
00057    }


Member Function Documentation

String nodegetprevioussiblingnull::getTargetURI   [inline, virtual]
 

Reimplemented from DOMTest.

Definition at line 73 of file nodegetprevioussiblingnull.java.

00073                                 {
00074       return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/nodegetprevioussiblingnull";
00075    }

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

Definition at line 76 of file nodegetprevioussiblingnull.java.

References DOMTestCase::doMain().

00076                                           {
00077         DOMTestCase.doMain(nodegetprevioussiblingnull.class,args);
00078    }

void nodegetprevioussiblingnull::runTest   [inline, virtual]
 

Reimplemented from DOMTestCase.

Definition at line 59 of file nodegetprevioussiblingnull.java.

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

00059                                                     {
00060       Document doc;
00061       NodeList elementList;
00062       Node employeeNode;
00063       Node fcNode;
00064       Node psNode;
00065       doc = load("staff");
00066       elementList = doc.getElementsByTagName("employee");
00067       employeeNode = elementList.item(2);
00068       fcNode = employeeNode.getFirstChild();
00069       psNode = fcNode.getPreviousSibling();
00070       assertNull("nodeGetPreviousSiblingNullAssert1",psNode);
00071       
00072    }


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