com.plumtree.openfoundation.xml.dom
Class XPText

java.lang.Object
  extended bycom.plumtree.openfoundation.xml.dom.XPNode
      extended bycom.plumtree.openfoundation.xml.dom.XPCharacterData
          extended bycom.plumtree.openfoundation.xml.dom.XPText

public class XPText
extends XPCharacterData

The XPText class is a wrapper for objects implementing org.w3c.dom.Text interface. Please refer to Text (Java 2 Platform SE v1.4.2) for detail information.

Author:
djc

Field Summary
 
Fields inherited from class com.plumtree.openfoundation.xml.dom.XPNode
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
protected XPText(org.w3c.dom.Text currText)
          Creates a new XPText object.
 
Method Summary
 org.w3c.dom.Node GetUnderlyingObject()
          Retrieve the underlying Node object.
 XPText SplitText(int offset)
          Breaks this node into two nodes at the specified offset, keeping both in the tree as siblings.
 
Methods inherited from class com.plumtree.openfoundation.xml.dom.XPCharacterData
AppendData, DeleteData, GetData, GetLength, InsertData, ReplaceData, SetData, SubStringData
 
Methods inherited from class com.plumtree.openfoundation.xml.dom.XPNode
AppendChild, CloneNode, GetAttributes, GetChildNodes, GetFirstChild, GetLastChild, GetLocalName, GetNamespaceURI, GetNextSibling, GetNodeName, GetNodeType, GetNodeValue, GetOwnerDocument, GetParentNode, GetPrefix, GetPreviousSibling, HasAttributes, HasChildNodes, InsertBefore, IsAttributeNode, IsCDATASectionNode, IsCommentNode, IsDocumentFragmentNode, IsDocumentNode, IsDocumentTypeNode, IsElementNode, IsProcessingInstructionNode, IsSupported, IsTextNode, Normalize, RemoveChild, ReplaceChild, SetNodeValue, SetPrefix, StoreNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPText

protected XPText(org.w3c.dom.Text currText)
Creates a new XPText object.

Parameters:
currText - - underlying text
Method Detail

GetUnderlyingObject

public org.w3c.dom.Node GetUnderlyingObject()
Retrieve the underlying Node object.

Overrides:
GetUnderlyingObject in class XPCharacterData
Returns:
the underlying text node

SplitText

public XPText SplitText(int offset)
Breaks this node into two nodes at the specified offset, keeping both in the tree as siblings.

Parameters:
offset - - offset at which to split
Returns:
the split text node


Copyright 2002, 2003, 2004 Plumtree Software Inc. All Rights Reserved.