Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.trolltech.qt.xml
Class QDomNodeList

    java.lang.Object
      com.trolltech.qt.QSignalEmitter
          com.trolltech.qt.QtJambiObject
              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.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)` This method returns the QDomNodeList instance pointed to by `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)` This function returns a QNativePointer that is pointing to the specified 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

### 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()`.

### fromNativePointer

    public static QDomNodeList fromNativePointer(QNativePointer nativePointer)

  This method returns the QDomNodeList instance pointed to by `nativePointer`.

### nativePointerArray

    public static QNativePointer nativePointerArray(QDomNodeList[] array)

  This function returns a QNativePointer that is pointing to the specified QDomNodeList array.

### clone

    public QDomNodeList clone()

  This method is reimplemented for internal reasons

  Overrides:
    `clone` in class `java.lang.Object`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD