Main Page   Packages   Class Hierarchy   Compound List   File List   Compound Members  

nodeentityreferencenodevalue Class Reference

Inherits DOMTestCase.

List of all members.

Public Methods

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

Static Public Methods

void main (String[] args)


Detailed Description

The string returned by the "getNodeValue()" method for an EntityReference Node is null.

Retrieve the first Entity Reference node from the last child of the second employee and check the string returned by the "getNodeValue()" method. It should be equal to null.

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

Definition at line 45 of file nodeentityreferencenodevalue.java.


Constructor & Destructor Documentation

nodeentityreferencenodevalue::nodeentityreferencenodevalue DOMTestDocumentBuilderFactory    factory [inline]
 

Definition at line 47 of file nodeentityreferencenodevalue.java.

00048  {
00049       super(factory);
00050 
00051    }


Member Function Documentation

String nodeentityreferencenodevalue::getTargetURI   [inline, virtual]
 

Reimplemented from DOMTest.

Definition at line 78 of file nodeentityreferencenodevalue.java.

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

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

Definition at line 81 of file nodeentityreferencenodevalue.java.

References DOMTestCase::doMain().

00081                                           {
00082         DOMTestCase.doMain(nodeentityreferencenodevalue.class,args);
00083    }

void nodeentityreferencenodevalue::runTest   [inline, virtual]
 

Reimplemented from DOMTestCase.

Definition at line 53 of file nodeentityreferencenodevalue.java.

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

00053                                                     {
00054       Document doc;
00055       NodeList elementList;
00056       Element entRefAddr;
00057       Node entRefNode;
00058       String entRefValue;
00059       doc = load("staff");
00060       
00061         if(
00062         isExpandEntityReferences()
00063         ) {
00064         entRefNode = doc.createEntityReference("ent2");
00065       
00066         }
00067         
00068                 else {
00069                         elementList = doc.getElementsByTagName("address");
00070       entRefAddr = (Element)elementList.item(1);
00071       entRefNode = entRefAddr.getFirstChild();
00072       
00073                 }
00074         entRefValue = entRefNode.getNodeValue();
00075       assertNull("nodeEntityReferenceNodeValueAssert1",entRefValue);
00076       
00077    }


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