All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class oracle.xml.parser.v2.XMLText

java.lang.Object
   |
   +----oracle.xml.parser.v2.XMLNode
           |
           +----oracle.xml.parser.v2.CharData
                   |
                   +----oracle.xml.parser.v2.XMLText

public class XMLText
extends CharData
implements Text, Serializable
This class implements the DOM Text interface.

See Also:
Text, NodeFactory, setNodeFactory

Constructor Index

 o XMLText(String)

Method Index

 o getNodeValue()
Gets the value of this node, depending on its type
 o splitText(int)
Breaks Text node into two Text nodes at specified offset, so they are both siblings, and the node only contains content up to the offset.

Constructors

 o XMLText
 public XMLText(String text)

Methods

 o splitText
 public Text splitText(int offset) throws DOMException
Breaks Text node into two Text nodes at specified offset, so they are both siblings, and the node only contains content up to the offset. New node inserted as next sibling contains all content at and after the offset point.

Parameters:
offset - Offset at which to split, starting from 0
Returns:
New Text node
Throws: DOMException
INDEX_SIZE_ERR: Raised if specified offset is negative or greater than number of characters in data.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
 o getNodeValue
 public String getNodeValue() throws DOMException
Gets the value of this node, depending on its type

Overrides:
getNodeValue in class XMLNode

All Packages  Class Hierarchy  This Package  Previous  Next  Index