Main Page Packages Class Hierarchy Compound List File List Compound Members

# characterdatadeletedatabegining Class Reference

Inherits DOMTestCase.

List of all members.

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

## Detailed Description

The "deleteData(offset,count)" method removes a range of characters from the node. Delete data at the beginning of the character data.

Retrieve the character data from the last child of the first employee. The "deleteData(offset,count)" method is then called with offset=0 and count=16. The method should delete the characters from position 0 thru position 16. The new value of the character data should be "Dallas, Texas 98551".

Author:
  NIST , Mary Brady

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

Definition at line 48 of file characterdatadeletedatabegining.java.

## Constructor & Destructor Documentation

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

| Definition at line 50 of file characterdatadeletedatabegining.java.
    00051  {
    00052       super(factory);
    00053
    00054    }

## Member Function Documentation

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

| Reimplemented from DOMTest. Definition at line 71 of file characterdatadeletedatabegining.java.
    00071                                 {
    00072       return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/characterdatadeletedatabegining";
    00073    }

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

| Definition at line 74 of file characterdatadeletedatabegining.java. References DOMTestCase::doMain().
    00074                                           {
    00075         DOMTestCase.doMain(characterdatadeletedatabegining.class,args);
    00076    }

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

| Reimplemented from DOMTestCase. Definition at line 56 of file characterdatadeletedatabegining.java. References DOMTestCase::assertEquals(), and DOMTest::load().
    00056                                                     {
    00057       Document doc;
    00058       NodeList elementList;
    00059       Node nameNode;
    00060       CharacterData child;
    00061       String childData;
    00062       doc = load("staff");
    00063       elementList = doc.getElementsByTagName("address");
    00064       nameNode = elementList.item(0);
    00065       child = (CharacterData)nameNode.getFirstChild();
    00066       child.deleteData(0,16);
    00067       childData = child.getData();
    00068       assertEquals("characterdataDeleteDataBeginingAssert","Dallas, Texas 98551",childData);
    00069
    00070    }

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

- characterdatadeletedatabegining.java