|
|||||||||
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.QDomNodeList
public class QDomNodeList
The QDomNodeList
class is a list of QDomNode
objects. Lists can be obtained by QDomDocument::elementsByTagName()
and QDomNode::childNodes()
. The Document Object Model (DOM) requires these lists to be "live": whenever you change the underlying document, the contents of the list will get updated.
You can get a particular node from the list with item()
. The number of items in the list is returned by length()
.
For further information about the Document Object Model see Level 1 and Level 2 Core. For a more general introduction of the DOM implementation see the QDomDocument
documentation.
QDomNode::childNodes()
, and QDomDocument::elementsByTagName()
.
Nested Class Summary |
---|
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 | |
---|---|
QDomNodeList()
Creates an empty node list. |
|
QDomNodeList(QDomNodeList arg__1)
Constructs a copy of n. |
Method Summary | |
---|---|
QDomNode |
at(int index)
This function is provided for Qt API consistency. |
QDomNodeList |
clone()
This method is reimplemented for internal reasons |
int |
count()
This function is provided for Qt API consistency. |
static QDomNodeList |
fromNativePointer(QNativePointer nativePointer)
|
boolean |
isEmpty()
Returns true if the list contains no items; otherwise returns false. |
QDomNode |
item(int index)
Returns the node at position index. |
int |
length()
Returns the number of nodes in the list. |
static QNativePointer |
nativePointerArray(QDomNodeList[] array)
|
int |
size()
This function is provided for Qt API consistency. |
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 QDomNodeList()
public QDomNodeList(QDomNodeList arg__1)
Method Detail |
---|
public final QDomNode at(int index)
item()
. If index is negative or if index >= length()
then a null node is returned (i.e. a node for which QDomNode::isNull()
returns true).
public final int count()
length()
.
public final boolean isEmpty()
public final QDomNode item(int index)
If index is negative or if index >= length()
then a null node is returned (i.e. a node for which QDomNode::isNull()
returns true).
length()
.
public final int length()
public final int size()
length()
.
public static QDomNodeList fromNativePointer(QNativePointer nativePointer)
public static QNativePointer nativePointerArray(QDomNodeList[] array)
public QDomNodeList clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |