com.tietoenator.trip.jxp.ccl

## Class TdbTermTree

- java.lang.Object
- - com.tietoenator.trip.jxp.ccl.TdbTermTree

- All Implemented Interfaces:
    com.tietoenator.trip.jxp.internal.utils.DOMSink

      public class TdbTermTree
      extends java.lang.Object
      implements com.tietoenator.trip.jxp.internal.utils.DOMSink

  A tree of terms, or rather a forest of trees of terms, such as is produced by the Display Down() command in CCL. Each term in the tree is an object of type TdbTreeEntry. Nodes are initially created without links, and once the tree is fully deserialized to a set of nodes, those nodes are linked into a forest by the method fixup().

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TdbTermTree()` Constructor

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `clear()` Clear the tree of any existing content
    `int` | `count()` Retrieve the number of terms within the tree
    `int` | `getRootCount()` Retrieve the number of items in the tree that are root nodes
    `java.util.List<TdbTreeEntry>` | `roots()` Retrieve the list of root nodes from the set of trees, i.e.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface com.tietoenator.trip.jxp.internal.utils.DOMSink

      `sinkNode`

- - ### Constructor Detail

    - #### TdbTermTree

          public TdbTermTree()

      Constructor

  - ### Method Detail

    - #### count

          public int count()

      Retrieve the number of terms within the tree
      Returns:
        The number of terms within the tree

    - #### roots

          public java.util.List<TdbTreeEntry> roots()

      Retrieve the list of root nodes from the set of trees, i.e. those nodes that have no parent found in the forest
      Returns:
        The collection of root nodes

    - #### getRootCount

          public int getRootCount()

      Retrieve the number of items in the tree that are root nodes
      Returns:
        The number of items in the tree that are root nodes

    - #### clear

          public void clear()

      Clear the tree of any existing content