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.xquery.util
Class SeqBuilder

    java.lang.Object
      org.basex.query.xquery.util.SeqBuilder

    public final class SeqBuilder

extends java.lang.Object

Simple Sequence Builder. In contrary to the `SeqBuilder`, sequences are not flattened.

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

Field Summary
`Item[]` | `item` Item array.
`int` | `size` Number of entries.

Constructor Summary
`SeqBuilder()` Constructor.
`SeqBuilder(Iter it)` Constructor.

Method Summary
`void` | `add(Item i)` Adds an atomic item.
`void` | `add(Iter it)` Adds the items of an iterator.
`Item` | `finish()` Returns an atomic item or a sequence.
`Iter` | `iter()` Returns an iterator.
`java.lang.String` | `toString()`

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

Field Detail

### item

    public Item[] item

  Item array.

### size

    public int size

  Number of entries.

Constructor Detail

### SeqBuilder

    public SeqBuilder()

  Constructor.

### SeqBuilder

    public SeqBuilder(Iter it)
               throws XQException

  Constructor.

  Parameters:
    `it` - initial iteration
  Throws:
    `XQException` - evaluation exception

Method Detail

### add

    public void add(Iter it)
             throws XQException

  Adds the items of an iterator.

  Parameters:
    `it` - entry to be added
  Throws:
    `XQException` - evaluation exception

### add

    public void add(Item i)

  Adds an atomic item. Note that the item must be no sequence.

  Parameters:
    `i` - entry to be added

### finish

    public Item finish()

  Returns an atomic item or a sequence.

  Returns:
    sequence

### iter

    public Iter iter()

  Returns an iterator.

  Returns:
    sequence

### toString

    public java.lang.String toString()

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

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