|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.xml.QDomNode
com.trolltech.qt.xml.QDomCharacterData
public class QDomCharacterData
The QDomCharacterData
class represents a generic string in the DOM. Character data as used in XML specifies a generic data string. More specialized versions of this class are QDomText
, QDomComment
and QDomCDATASection
.
The data string is set with setData()
and retrieved with data()
. You can retrieve a portion of the data string using substringData()
. Extra data can be appended with appendData()
, or inserted with insertData()
. Portions of the data string can be deleted with deleteData()
or replaced with replaceData()
. The length of the data string is returned by length()
.
The node type of the node containing this character data is returned by nodeType().
QDomText
, QDomComment
, and QDomCDATASection
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.trolltech.qt.xml.QDomNode |
---|
QDomNode.EncodingPolicy, QDomNode.NodeType |
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
---|
QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9 |
Constructor Summary | |
---|---|
QDomCharacterData()
Constructs an empty character data object. |
|
QDomCharacterData(QDomCharacterData x)
Constructs a copy of x. |
Method Summary | |
---|---|
void |
appendData(java.lang.String arg)
Appends the string arg to the stored string. |
QDomCharacterData |
clone()
This method is reimplemented for internal reasons |
java.lang.String |
data()
Returns the string stored in this object. |
void |
deleteData(int offset,
int count)
Deletes a substring of length count from position offset. |
static QDomCharacterData |
fromNativePointer(QNativePointer nativePointer)
|
void |
insertData(int offset,
java.lang.String arg)
Inserts the string arg into the stored string at position offset. |
int |
length()
Returns the length of the stored string. |
static QNativePointer |
nativePointerArray(QDomCharacterData[] array)
|
void |
replaceData(int offset,
int count,
java.lang.String arg)
Replaces the substring of length count starting at position offset with the string arg. |
void |
setData(java.lang.String arg__1)
Sets this object's string to v. |
java.lang.String |
substringData(int offset,
int count)
Returns the substring of length count from position offset. |
Methods inherited from class com.trolltech.qt.QtJambiObject |
---|
dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr |
Methods inherited from class com.trolltech.qt.QSignalEmitter |
---|
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.trolltech.qt.QtJambiInterface |
---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
Constructor Detail |
---|
public QDomCharacterData()
public QDomCharacterData(QDomCharacterData x)
The data of the copy is shared (shallow copy): modifying one node will also change the other. If you want to make a deep copy, use cloneNode()
.
Method Detail |
---|
public final void appendData(java.lang.String arg)
public final java.lang.String data()
If the node is a null node
, it will return an empty string.
setData()
.
public final void deleteData(int offset, int count)
public final void insertData(int offset, java.lang.String arg)
public final int length()
public final void replaceData(int offset, int count, java.lang.String arg)
public final void setData(java.lang.String arg__1)
data()
.
public final java.lang.String substringData(int offset, int count)
public static QDomCharacterData fromNativePointer(QNativePointer nativePointer)
public static QNativePointer nativePointerArray(QDomCharacterData[] array)
public QDomCharacterData clone()
clone
in class QDomNode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |