gnu.xml.dom

Class DomText

public class DomText extends DomCharacterData implements Text

"Text" implementation.

Version: $Date: 2001/11/20 04:54:32 $

Author: David Brownell

Constructor Summary
protected DomText(Document owner, String value)
Constructs a text node associated with the specified document and holding the specified data.
protected DomText(Document owner, char[] buf, int off, int len)
Method Summary
StringgetNodeName()
DOM L1 Returns the string "#text".
shortgetNodeType()
DOM L1 Returns the constant TEXT_NODE.
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 Detail

DomText

protected DomText(Document owner, 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.

DomText

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

Method Detail

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

Source code is under GPL (with library exception) in the JAXP project at http://www.gnu.org/software/classpathx/jaxp
This documentation was derived from that source code on 2011-08-26.