Main Page   Packages   Class Hierarchy   Compound List   File List   Compound Members  

characterdatasubstringvalue Class Reference

Inherits DOMTestCase.

List of all members.

Public Methods

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

Static Public Methods

void main (String[] args)


Detailed Description

The "substringData(offset,count)" method returns the specified string.

Retrieve the character data from the second child of the first employee and access part of the data by using the substringData(offset,count) method. The method should return the specified substring starting at position "offset" and extract "count" characters. The method should return the string "Margaret".

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

Definition at line 47 of file characterdatasubstringvalue.java.


Constructor & Destructor Documentation

characterdatasubstringvalue::characterdatasubstringvalue DOMTestDocumentBuilderFactory    factory [inline]
 

Definition at line 49 of file characterdatasubstringvalue.java.

00050  {
00051       super(factory);
00052 
00053    }


Member Function Documentation

String characterdatasubstringvalue::getTargetURI   [inline, virtual]
 

Reimplemented from DOMTest.

Definition at line 69 of file characterdatasubstringvalue.java.

00069                                 {
00070       return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/characterdatasubstringvalue";
00071    }

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

Definition at line 72 of file characterdatasubstringvalue.java.

References DOMTestCase::doMain().

00072                                           {
00073         DOMTestCase.doMain(characterdatasubstringvalue.class,args);
00074    }

void characterdatasubstringvalue::runTest   [inline, virtual]
 

Reimplemented from DOMTestCase.

Definition at line 55 of file characterdatasubstringvalue.java.

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

00055                                                     {
00056       Document doc;
00057       NodeList elementList;
00058       Node nameNode;
00059       CharacterData child;
00060       String substring;
00061       doc = load("staff");
00062       elementList = doc.getElementsByTagName("name");
00063       nameNode = elementList.item(0);
00064       child = (CharacterData)nameNode.getFirstChild();
00065       substring = child.substringData(0,8);
00066       assertEquals("characterdataSubStringValueAssert","Margaret",substring);
00067       
00068    }


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