public class QText extends QAbstractNode implements org.w3c.dom.Text
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
_data |
protected boolean |
_whitespaceOnly |
LATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Constructor and Description |
|---|
QText()
Creates a new text node.
|
QText(java.lang.String data)
Creates a new text node with initial data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendData(java.lang.String arg) |
void |
deleteData(int offset) |
void |
deleteData(int offset,
int count) |
java.lang.String |
getData()
Returns the node value.
|
boolean |
getIsWhitespaceInElementContent() |
int |
getLength()
Returns the length of the text data.
|
java.lang.String |
getNodeName() |
short |
getNodeType() |
java.lang.String |
getNodeValue()
Returns the node value.
|
java.lang.String |
getWholeText() |
boolean |
hasContent() |
void |
insertData(int offset,
java.lang.String arg) |
boolean |
isElementContentWhitespace() |
org.w3c.dom.Text |
joinText(org.w3c.dom.Text node1,
org.w3c.dom.Text node2) |
void |
print(XmlPrinter os) |
void |
replaceData(int offset,
int count,
java.lang.String arg) |
org.w3c.dom.Text |
replaceWholeText(java.lang.String content) |
void |
setData(java.lang.String data)
Sets the node value.
|
void |
setNodeValue(java.lang.String data)
Sets the node value.
|
org.w3c.dom.Text |
splitText(int offset) |
java.lang.String |
substringData(int start) |
java.lang.String |
substringData(int start,
int count) |
java.lang.String |
toString() |
appendChild, baseURI, checkValid, cloneNode, compareDocumentPosition, compareTreePosition, equals, getAttributes, getBaseURI, getCanonicalName, getChildNodes, getColumn, getDependencyList, getFeature, getFilename, getFirstChild, getInterface, getLastChild, getLine, getLocalName, getNamespaceURI, getNextContent, getNextPreorder, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousContent, getPreviousSibling, getQName, getTextContent, getTextValue, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespacePrefix, lookupNamespaceURI, lookupPrefix, normalize, print, printHtml, printPretty, removeChild, replaceChild, setFeature, setLocation, setPrefix, setTextContent, setUserData, supportsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitappendData, deleteData, getData, getLength, insertData, replaceData, setData, substringDataappendChild, 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, setUserDataprotected java.lang.String _data
protected boolean _whitespaceOnly
public QText()
public QText(java.lang.String data)
public java.lang.String getNodeName()
getNodeName in interface org.w3c.dom.Nodepublic short getNodeType()
getNodeType in interface org.w3c.dom.Nodepublic org.w3c.dom.Text splitText(int offset)
throws org.w3c.dom.DOMException
splitText in interface org.w3c.dom.Textorg.w3c.dom.DOMExceptionpublic org.w3c.dom.Text joinText(org.w3c.dom.Text node1,
org.w3c.dom.Text node2)
throws org.w3c.dom.DOMException
org.w3c.dom.DOMExceptionpublic boolean getIsWhitespaceInElementContent()
public java.lang.String getWholeText()
getWholeText in interface org.w3c.dom.Textpublic org.w3c.dom.Text replaceWholeText(java.lang.String content)
throws org.w3c.dom.DOMException
replaceWholeText in interface org.w3c.dom.Textorg.w3c.dom.DOMExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getNodeValue()
getNodeValue in interface org.w3c.dom.NodegetNodeValue in class QAbstractNodepublic void setNodeValue(java.lang.String data)
setNodeValue in interface org.w3c.dom.NodesetNodeValue in class QAbstractNodepublic java.lang.String getData()
getData in interface org.w3c.dom.CharacterDatapublic void setData(java.lang.String data)
setData in interface org.w3c.dom.CharacterDatapublic int getLength()
getLength in interface org.w3c.dom.CharacterDatapublic java.lang.String substringData(int start,
int count)
throws org.w3c.dom.DOMException
substringData in interface org.w3c.dom.CharacterDataorg.w3c.dom.DOMExceptionpublic java.lang.String substringData(int start)
throws org.w3c.dom.DOMException
org.w3c.dom.DOMExceptionpublic void appendData(java.lang.String arg)
throws org.w3c.dom.DOMException
appendData in interface org.w3c.dom.CharacterDataorg.w3c.dom.DOMExceptionpublic void insertData(int offset,
java.lang.String arg)
throws org.w3c.dom.DOMException
insertData in interface org.w3c.dom.CharacterDataorg.w3c.dom.DOMExceptionpublic void deleteData(int offset,
int count)
throws org.w3c.dom.DOMException
deleteData in interface org.w3c.dom.CharacterDataorg.w3c.dom.DOMExceptionpublic void deleteData(int offset)
throws org.w3c.dom.DOMException
org.w3c.dom.DOMExceptionpublic void replaceData(int offset,
int count,
java.lang.String arg)
throws org.w3c.dom.DOMException
replaceData in interface org.w3c.dom.CharacterDataorg.w3c.dom.DOMExceptionpublic boolean hasContent()
hasContent in class QAbstractNodepublic boolean isElementContentWhitespace()
public void print(XmlPrinter os) throws java.io.IOException
java.io.IOException