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

## org.basex.core.proc
Class Insert

    java.lang.Object
      org.basex.core.Progress
          org.basex.core.AbstractProcess
              org.basex.core.proc.Proc
                  org.basex.core.proc.Insert

    public final class Insert

extends Proc

Evaluates the 'insert' command.

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

Field Summary
`static java.lang.String` | `ATT` Insert option.
`static java.lang.String` | `COM` Insert option.
`static java.lang.String` | `ELEM` Insert option.
`static java.lang.String` | `FRG` Insert option.
`static java.lang.String[]` | `KINDS` Node Kinds; order equals numbering in the `Data` class.
`static java.lang.String` | `PI` Insert option.
`static java.lang.String` | `TXT` Insert option.

Fields inherited from class org.basex.core.AbstractProcess
`cmd`

Constructor Summary
`Insert()`

Method Summary
`static boolean` | `check(byte[] name)` Checks the validity of the specified name.
`static int` | `checkText(Data data, int pre, int par, int kind)` Checks if the current insertion would create two adjacent text nodes.
`static Data` | `copy(Data data, int pre)` Creates a memory data instance from the specified database and pre value.
`static int` | `pre(int par, int pos, Data data)` Retrieves the pre value for the specified child position.

Methods inherited from class org.basex.core.proc.Proc
`det, execute, execute, get, head, info, info, output, output, prog, result, toString`

Methods inherited from class org.basex.core.Progress
`detail, header, progress, progress, stop, stopped`

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

Field Detail

### ATT

    public static final java.lang.String ATT

  Insert option.

  See Also:
    Constant Field Values

### COM

    public static final java.lang.String COM

  Insert option.

  See Also:
    Constant Field Values

### ELEM

    public static final java.lang.String ELEM

  Insert option.

  See Also:
    Constant Field Values

### FRG

    public static final java.lang.String FRG

  Insert option.

  See Also:
    Constant Field Values

### KINDS

    public static final java.lang.String[] KINDS

  Node Kinds; order equals numbering in the `Data` class.

### PI

    public static final java.lang.String PI

  Insert option.

  See Also:
    Constant Field Values

### TXT

    public static final java.lang.String TXT

  Insert option.

  See Also:
    Constant Field Values

Constructor Detail

### Insert

    public Insert()

Method Detail

### check

    public static boolean check(byte[] name)

  Checks the validity of the specified name.

  Parameters:
    `name` - name to be checked
  Returns:
    result of check

### checkText

    public static int checkText(Data data,
                                int pre,
                                int par,
                                int kind)

  Checks if the current insertion would create two adjacent text nodes.

  Parameters:
    `data` - data reference
    `pre` - pre value
    `par` - parent value
    `kind` - node kind
  Returns:
    update position or -1 if negative

### copy

    public static Data copy(Data data,
                            int pre)

  Creates a memory data instance from the specified database and pre value.

  Parameters:
    `data` - data reference
    `pre` - pre value
  Returns:
    database instance

### pre

    public static int pre(int par,
                          int pos,
                          Data data)

  Retrieves the pre value for the specified child position.

  Parameters:
    `par` - parent node
    `pos` - child position
    `data` - data reference
  Returns:
    pre value

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