com.trolltech.qt.xml
Class QDomNodeList

java.lang.Object
  extended by com.trolltech.qt.internal.QSignalEmitterInternal
      extended by com.trolltech.qt.QSignalEmitter
          extended by com.trolltech.qt.QtJambiObject
              extended by com.trolltech.qt.xml.QDomNodeList
All Implemented Interfaces:
QtJambiInterface, java.lang.Cloneable

public class QDomNodeList
extends QtJambiObject
implements java.lang.Cloneable

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.

See also:
QDomNode::childNodes(), and QDomDocument::elementsByTagName().


Nested Class Summary
 
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter
QSignalEmitter.AbstractSignal, QSignalEmitter.PrivateSignal0, QSignalEmitter.PrivateSignal1, QSignalEmitter.PrivateSignal2, QSignalEmitter.PrivateSignal3, QSignalEmitter.PrivateSignal4, QSignalEmitter.PrivateSignal5, QSignalEmitter.PrivateSignal6, QSignalEmitter.PrivateSignal7, QSignalEmitter.PrivateSignal8, QSignalEmitter.PrivateSignal9, QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9
 
Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal
 
Field Summary
 
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
currentSender
 
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.
 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.
 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 com.trolltech.qt.internal.QSignalEmitterInternal
__qt_signalInitialization
 
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

QDomNodeList

public QDomNodeList()
Creates an empty node list.


QDomNodeList

public QDomNodeList(QDomNodeList arg__1)
Constructs a copy of n.

Method Detail

at

public final QDomNode at(int index)
This function is provided for Qt API consistency. It is equivalent to 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).


count

public final int count()
This function is provided for Qt API consistency. It is equivalent to length().


isEmpty

public final boolean isEmpty()
Returns true if the list contains no items; otherwise returns false. This function is provided for Qt API consistency.


item

public final QDomNode item(int index)
Returns the node at position 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).

See also:
length().


length

public final int length()
Returns the number of nodes in the list.


size

public final int size()
This function is provided for Qt API consistency. It is equivalent to length().


clone

public QDomNodeList clone()
This method is reimplemented for internal reasons

Overrides:
clone in class java.lang.Object