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.gui.view
Class ViewData

    java.lang.Object
      org.basex.gui.view.ViewData

    public final class ViewData

extends java.lang.Object

This class assembles some database access methods which are used in the same way by different visualizations. If more specific database access is needed, it is advisable to directly work on the `Data` class.

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

Field Summary
`static int` | `focusedPre` Current context set.

Method Summary
`static byte[]` | `content(int p, boolean s)` Returns the contents of the specified node.
`static boolean` | `isLeaf(int pre)` Checks if the specified node is a leaf node (text node or file element or file tag).
`static void` | `launch(int pre)` Opens the file which is defined by the specified pre value.
`static int` | `parent(int pre)` Returns the parent for the specified node.
`static java.lang.String` | `path(int pre)` Returns path for the specified pre value.
`static byte[]` | `tag(int pre)` Returns the tag name of the specified node.

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

Field Detail

### focusedPre

    public static int focusedPre

  Current context set.

Method Detail

### content

    public static byte[] content(int p,
                                 boolean s)

  Returns the contents of the specified node.

  Parameters:
    `p` - pre value
    `s` - if specified, a short representation is returned (no full text nodes, only attribute names)
  Returns:
    name

### isLeaf

    public static boolean isLeaf(int pre)

  Checks if the specified node is a leaf node (text node or file element or file tag).

  Parameters:
    `pre` - pre value
  Returns:
    result of comparison

### launch

    public static void launch(int pre)

  Opens the file which is defined by the specified pre value.

  Parameters:
    `pre` - pre value

### parent

    public static int parent(int pre)

  Returns the parent for the specified node.

  Parameters:
    `pre` - child node
  Returns:
    parent node

### path

    public static java.lang.String path(int pre)

  Returns path for the specified pre value.

  Parameters:
    `pre` - pre value
  Returns:
    current path

### tag

    public static byte[] tag(int pre)

  Returns the tag name of the specified node. Note that the pre value must reference an element node.

  Parameters:
    `pre` - pre value
  Returns:
    name

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