Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
gnu.xml.dom

Class DomText

java.lang.Object
|
+--gnu.xml.dom.DomNode
   |
   +--gnu.xml.dom.DomCharacterData
      |
      +--gnu.xml.dom.DomText

All Implemented Interfaces:

Text, CharacterData, Node, NodeList, EventTarget, DocumentEvent, Cloneable


public class DomText

extends DomCharacterData

implements Text

"Text" implementation.

Author:

Constructor Summary

DomText(org.w3c.dom.Document owner, java.lang.String value)

Constructs a text node associated with the specified document and holding the specified data.
DomText(org.w3c.dom.Document owner, char buf[][] , int off, int len)

Method Summary

java.lang.StringgetNodeName()

DOM L1 Returns the string "#text".
shortgetNodeType()

DOM L1 Returns the constant TEXT_NODE.
org.w3c.dom.TextsplitText(int offset)

DOM L1 Splits this text node in two parts at the offset, returning the new text node (the sibling with the second part).

Constructor Details

DomText

protected DomText(org.w3c.dom.Document owner, char buf[][] , int off, int len)

Parameters:


DomText

protected DomText(org.w3c.dom.Document owner, java.lang.String value)

Constructs a text node associated with the specified document and holding the specified data.

This constructor should only be invoked by a Document object as part of its createTextNode functionality, or through a subclass which is similarly used in a "Sub-DOM" style layer.

Parameters:


Method Details

getNodeName

public String getNodeName()

DOM L1 Returns the string "#text".


getNodeType

public short getNodeType()

DOM L1 Returns the constant TEXT_NODE.


splitText

public Text splitText(int offset)

DOM L1 Splits this text node in two parts at the offset, returning the new text node (the sibling with the second part).

Parameters: