public class

KVNode

extends Node
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.output.tree.impl.Node
     ↳ com.pnfsoftware.jeb.core.output.tree.impl.KVNode

Class Overview

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.

Summary

[Expand]
Inherited Constants
From interface com.pnfsoftware.jeb.core.output.IActionableItem
Public Constructors
KVNode(String label)
Create a key value node whose value is empty.
KVNode(String label, Object value)
Create a key-value node.
Public Methods
String[] getAdditionalLabels()
Get the additional labels for table trees.
void setAdditionalLabels(String[] addLabels)
[Expand]
Inherited Methods
From class com.pnfsoftware.jeb.core.output.tree.impl.Node
From class java.lang.Object
From interface com.pnfsoftware.jeb.core.output.IActionableItem
From interface com.pnfsoftware.jeb.core.output.IVisualItem
From interface com.pnfsoftware.jeb.core.output.tree.INode
From interface com.pnfsoftware.jeb.core.output.tree.IVisualNode

Public Constructors

public KVNode (String label)

Create a key value node whose value is empty.

Parameters
label the non-null key (label)

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

Public Methods

public String[] getAdditionalLabels ()

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.

Returns
  • the list of additional labels. Example: If the table tree has 3 columns, that method should return at most 2 additional labels

public void setAdditionalLabels (String[] addLabels)