Main Page Packages Class Hierarchy Compound List File List Compound Members

# characterdatagetdata Class Reference

Inherits DOMTestCase.

List of all members.

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

## Detailed Description

The "getData()" method retrieves the character data

currently stored in the node.

Retrieve the character data from the second child

of the first employee and invoke the "getData()"

method. The method returns the character data

string.

Author:
  NIST , Mary Brady

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

Definition at line 51 of file characterdatagetdata.java.

## Constructor & Destructor Documentation

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

| Definition at line 53 of file characterdatagetdata.java.
    00054  {
    00055       super(factory);
    00056
    00057    }

## Member Function Documentation

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

| Reimplemented from DOMTest. Definition at line 73 of file characterdatagetdata.java.
    00073                                 {
    00074       return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/characterdatagetdata";
    00075    }

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

| Definition at line 76 of file characterdatagetdata.java. References DOMTestCase::doMain().
    00076                                           {
    00077         DOMTestCase.doMain(characterdatagetdata.class,args);
    00078    }

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

| Reimplemented from DOMTestCase. Definition at line 59 of file characterdatagetdata.java. References DOMTestCase::assertEquals(), and DOMTest::load().
    00059                                                     {
    00060       Document doc;
    00061       NodeList elementList;
    00062       Node nameNode;
    00063       CharacterData child;
    00064       String childData;
    00065       doc = load("staff");
    00066       elementList = doc.getElementsByTagName("name");
    00067       nameNode = elementList.item(0);
    00068       child = (CharacterData)nameNode.getFirstChild();
    00069       childData = child.getData();
    00070       assertEquals("characterdataGetDataAssert","Margaret Martin",childData);
    00071
    00072    }

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

- characterdatagetdata.java