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

Class DomText

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

All Implemented Interfaces:
java.lang.Cloneable, CharacterData, DocumentEvent, EventTarget, Node, NodeList, Text

Known Direct Subclasses:
DomCDATA


public class DomText
extends DomCharacterData
implements Text

"Text" implementation.

Author:
David Brownell

Constructor Summary

DomText(Document owner, java.lang.String value)

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

DomText(Document owner, char buf[] , int off, int len)

Method Summary

java.lang.String

getNodeName()

DOM L1 Returns the string "#text".

short

getNodeType()

DOM L1 Returns the constant TEXT_NODE.

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).

Constructor Details

DomText

protected DomText(Document owner, char buf[] , int off, int len)

Parameters:
owner
off
len

DomText

protected DomText(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:
owner
value

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:
offset