|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.xml.dom.NodeImpl
com.novell.xml.dom.CharacterDataImpl
com.novell.xml.dom.TextImpl
public class TextImpl
Field Summary |
---|
Fields inherited from class com.novell.xml.dom.NodeImpl |
---|
allowedChildren, baseURI, changeCount, document, documentOrderVal, expandedName, firstChild, lastChild, localName, namespaceURI, nextOrderVal, nextSibling, nodeName, nodeValue, parentNode, prefix, previousSibling, toStringSerializes, xmlnsPrefix, xmlPrefix, xpathBehavior |
Constructor Summary | |
---|---|
protected |
TextImpl(DocumentImpl owner,
String value)
|
Method Summary | |
---|---|
String |
getNodeName()
The name of this node, depending on its type; see the table above. |
short |
getNodeType()
A code representing the type of the underlying object, as defined above. |
Text |
splitText(int offset)
Breaks this Text node into two Text nodes at the specified
offset, keeping both in the tree as siblings. |
Methods inherited from class com.novell.xml.dom.CharacterDataImpl |
---|
appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Text |
---|
getWholeText, isElementContentWhitespace, replaceWholeText |
Methods inherited from interface org.w3c.dom.CharacterData |
---|
appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData |
Methods inherited from interface org.w3c.dom.Node |
---|
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
Constructor Detail |
---|
protected TextImpl(DocumentImpl owner, String value)
Method Detail |
---|
public String getNodeName()
getNodeName
in interface Node
getNodeName
in class NodeImpl
public short getNodeType()
getNodeType
in interface Node
getNodeType
in class NodeImpl
public Text splitText(int offset) throws DOMException
Text
node into two Text nodes at the specified
offset, keeping both in the tree as siblings. This node then only
contains all the content up to the offset
point. And a new
Text
node, which is inserted as the next sibling of this
node, contains all the content at and after the offset
point.
splitText
in interface Text
offset
- The offset at which to split, starting from 0.
Text
node.
DOMException
- INDEX_SIZE_ERR: Raised if the specified offset is negative or greater
than the number of characters in data
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |