java.lang.Object
org.kordamp.jarviz.reporting.Node

public class Node extends Object
Since:
0.2.0
  • Field Details

    • parent

      private final Node parent
    • indentation

      private final int indentation
    • name

      private final String name
    • children

      private final List<Node> children
    • array

      private final boolean array
    • collapsable

      private final boolean collapsable
    • value

      private Object value
  • Constructor Details

    • Node

      private Node(Node parent, String name, boolean array, boolean collapsable)
  • Method Details

    • getIndentation

      public int getIndentation()
    • getName

      public String getName()
    • getValue

      public String getValue()
    • getChildren

      public List<Node> getChildren()
    • getParent

      public Optional<Node> getParent()
    • isCollapsable

      public boolean isCollapsable()
    • isArray

      public boolean isArray()
    • isArrayElement

      public boolean isArrayElement()
    • isFirstChild

      public boolean isFirstChild()
    • value

      public Node value(Object value)
    • node

      public Node node(String name)
    • array

      public Node array(String name)
    • collapsable

      public Node collapsable(String name)
    • children

      public Node children(Collection<String> elements)
    • children

      public Node children(String name, Collection<String> elements)
    • collapsableChildren

      public Node collapsableChildren(String name, Collection<String> elements)
    • cleanup

      public Node cleanup()
    • end

      public Node end()
    • root

      public static Node root(String name)