Main Page Packages Class Hierarchy Compound List File List Compound Members

# characterdatasetnodevalue Class Reference

Inherits DOMTestCase.

List of all members.

## Public Methods
| characterdatasetnodevalue (DOMTestDocumentBuilderFactory factory)
void | runTest () throws java.lang.Throwable
String | getTargetURI ()
## Static Public Methods
void | main (String[] args)

## Detailed Description

The "setNodeValue()" method changes the character data currently stored in the node. Retrieve the character data from the second child of the first employee and invoke the "setNodeValue()" method, call "getData()" and compare.

Author:
  Curt Arnold

See also:
  http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359

Definition at line 42 of file characterdatasetnodevalue.java.

## Constructor & Destructor Documentation

characterdatasetnodevalue::characterdatasetnodevalue | ( | DOMTestDocumentBuilderFactory | factory | ) | `[inline]`

| Definition at line 44 of file characterdatasetnodevalue.java.
    00045  {
    00046       super(factory);
    00047
    00048    }

## Member Function Documentation

String characterdatasetnodevalue::getTargetURI | ( |  | ) | `[inline, virtual]`

| Reimplemented from DOMTest. Definition at line 68 of file characterdatasetnodevalue.java.
    00068                                 {
    00069       return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/characterdatasetnodevalue";
    00070    }

void characterdatasetnodevalue::main | ( | String | args[] | ) | `[inline, static]`

| Definition at line 71 of file characterdatasetnodevalue.java. References DOMTestCase::doMain().
    00071                                           {
    00072         DOMTestCase.doMain(characterdatasetnodevalue.class,args);
    00073    }

void characterdatasetnodevalue::runTest | ( |  | ) | `[inline, virtual]`

| Reimplemented from DOMTestCase. Definition at line 50 of file characterdatasetnodevalue.java. References DOMTestCase::assertEquals(), and DOMTest::load().
    00050                                                     {
    00051       Document doc;
    00052       NodeList elementList;
    00053       Node nameNode;
    00054       CharacterData child;
    00055       String childData;
    00056       String childValue;
    00057       doc = load("staff");
    00058       elementList = doc.getElementsByTagName("name");
    00059       nameNode = elementList.item(0);
    00060       child = (CharacterData)nameNode.getFirstChild();
    00061       child.setNodeValue("Marilyn Martin");
    00062       childData = child.getData();
    00063       assertEquals("data","Marilyn Martin",childData);
    00064       childValue = child.getNodeValue();
    00065       assertEquals("value","Marilyn Martin",childValue);
    00066
    00067    }

The documentation for this class was generated from the following file:

- characterdatasetnodevalue.java