java.lang.Object
com.pnfsoftware.jeb.core.output.tree.impl.Node
com.pnfsoftware.jeb.core.output.tree.impl.KVNode
All Implemented Interfaces:
IActionableItem, IItem, IVisualItem, IActionableNode, INode, IVisualNode

@Ser public class KVNode extends Node
Basic implementation of a key-value tree node. A KV-Node has 2 labels: the primary label is a key name; the first and only additional label is the value associated to that key.
  • Constructor Details

    • KVNode

      public KVNode(String label)
      Create a key value node whose value is empty.
      Parameters:
      label - the non-null key (label)
    • KVNode

      public KVNode(String label, Object value)
      Create a key-value node.
      Parameters:
      label - the non-null key (label)
      value - the optional value attached to the key
  • Method Details

    • getAdditionalLabels

      public String[] getAdditionalLabels()
      Description copied from interface: INode
      Get the additional labels for table trees. Simple trees should return null.

      It is recommended to avoid new-line characters in the label. If new line characters are found, what happens to them is client-specific.

      Specified by:
      getAdditionalLabels in interface INode
      Overrides:
      getAdditionalLabels in class Node
      Returns:
      the list of additional labels. Example: If the table tree has 3 columns, that method should return at most 2 additional labels
    • setAdditionalLabels

      public void setAdditionalLabels(String[] addLabels)