Main Page   Packages   Class Hierarchy   Compound List   File List   Compound Members  

attreffectivevalue Class Reference

Inherits DOMTestCase.

List of all members.

Public Methods

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

Static Public Methods

void main (String[] args)


Detailed Description

If an Attr is explicitly assigned any value, then that value is the attributes effective value. Retrieve the attribute named "domestic" from the last child of of the first employee and examine its nodeValue attribute. This test uses the "getNamedItem(name)" method from the NamedNodeMap interface.

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

Definition at line 43 of file attreffectivevalue.java.


Constructor & Destructor Documentation

attreffectivevalue::attreffectivevalue DOMTestDocumentBuilderFactory    factory [inline]
 

Definition at line 45 of file attreffectivevalue.java.

00046  {
00047       super(factory);
00048 
00049    }


Member Function Documentation

String attreffectivevalue::getTargetURI   [inline, virtual]
 

Reimplemented from DOMTest.

Definition at line 67 of file attreffectivevalue.java.

00067                                 {
00068       return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/attreffectivevalue";
00069    }

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

Definition at line 70 of file attreffectivevalue.java.

References DOMTestCase::doMain().

00070                                           {
00071         DOMTestCase.doMain(attreffectivevalue.class,args);
00072    }

void attreffectivevalue::runTest   [inline, virtual]
 

Reimplemented from DOMTestCase.

Definition at line 51 of file attreffectivevalue.java.

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

00051                                                     {
00052       Document doc;
00053       NodeList addressList;
00054       Node testNode;
00055       NamedNodeMap attributes;
00056       Attr domesticAttr;
00057       String value;
00058       doc = load("staff");
00059       addressList = doc.getElementsByTagName("address");
00060       testNode = addressList.item(0);
00061       attributes = testNode.getAttributes();
00062       domesticAttr = (Attr)attributes.getNamedItem("domestic");
00063       value = domesticAttr.getNodeValue();
00064       assertEquals("attrEffectiveValueAssert","Yes",value);
00065       
00066    }


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