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

## org.basex.query
Class ChildIterator

    java.lang.Object
      org.basex.query.ChildIterator

    public final class ChildIterator

extends java.lang.Object

Offers an iterator for the children of a node. Could as well be defined as generic child iterator.

Author:
  Workgroup DBIS, University of Konstanz 2005-09, ISC License, Christian Gruen

Constructor Summary
`ChildIterator(Data d, int p)` Default Constructor.

Method Summary
`int[]` | `all()` Returns an array with all pre values.
`void` | `init(int p)` Initializes the iterator.
`boolean` | `more()` Returns if the node offers more children.
`int` | `next()` Returns the pre value of the next child.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ChildIterator

    public ChildIterator(Data d,
                         int p)

  Default Constructor.

  Parameters:
    `d` - data reference
    `p` - value of directory node

Method Detail

### init

    public void init(int p)

  Initializes the iterator.

  Parameters:
    `p` - root pre value

### more

    public boolean more()

  Returns if the node offers more children.

  Returns:
    result of check

### next

    public int next()

  Returns the pre value of the next child.

  Returns:
    next child reference.

### all

    public int[] all()

  Returns an array with all pre values. Must be directly called after creating the class instance.

  Returns:
    children array

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