Main Page   Packages   Class Hierarchy   Compound List   File List   Compound Members  

nodeprocessinginstructionnodetype Class Reference

Inherits DOMTestCase.

List of all members.

Public Methods

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

Static Public Methods

void main (String[] args)


Detailed Description

The "getNodeType()" method for a Processing Instruction

node returns the constant value 7.

Retrieve a NodeList of child elements from the document.

Retrieve the first child and invoke the "getNodeType()"

method. The method should return 7.

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

Definition at line 51 of file nodeprocessinginstructionnodetype.java.


Constructor & Destructor Documentation

nodeprocessinginstructionnodetype::nodeprocessinginstructionnodetype DOMTestDocumentBuilderFactory    factory [inline]
 

Definition at line 53 of file nodeprocessinginstructionnodetype.java.

00054  {
00055       super(factory);
00056 
00057    }


Member Function Documentation

String nodeprocessinginstructionnodetype::getTargetURI   [inline, virtual]
 

Reimplemented from DOMTest.

Definition at line 71 of file nodeprocessinginstructionnodetype.java.

00071                                 {
00072       return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/nodeprocessinginstructionnodetype";
00073    }

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

Definition at line 74 of file nodeprocessinginstructionnodetype.java.

References DOMTestCase::doMain().

00074                                           {
00075         DOMTestCase.doMain(nodeprocessinginstructionnodetype.class,args);
00076    }

void nodeprocessinginstructionnodetype::runTest   [inline, virtual]
 

Reimplemented from DOMTestCase.

Definition at line 59 of file nodeprocessinginstructionnodetype.java.

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

00059                                                     {
00060       Document doc;
00061       NodeList testList;
00062       Node piNode;
00063       int nodeType;
00064       doc = load("staff");
00065       testList = doc.getChildNodes();
00066       piNode = testList.item(0);
00067       nodeType = (int)piNode.getNodeType();
00068       assertEquals("nodeProcessingInstructionNodeTypeAssert1",7,nodeType);
00069       
00070    }


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