Class Collections.Tree

Tree

Class Summary
Constructor Attributes Constructor Name and Description
 
A Tree is a Collection that can contain multiple childrens for a node

Method Summary

Class Detail

Collections.Tree()
A Tree is a Collection that can contain multiple childrens for a node
require('Collections').Tree()

Method Detail

  • <static> {null} Collections.Tree.addChildren(Item)
    Add a children to the provided Tree Node
    Parameters:
    {Object} Item
    Returns:
    {null}
  • <static> {Collections.Tree} Collections.Tree.clone()
    returns Collection.Set a new set with the cloned object of the items.
    Returns:
    {Collections.Tree}
  • <static> {Collection.ArrayList} Collections.Tree.getChildren()
    returns an Collections.ArrayList of the childrens to the Node.
    Returns:
    {Collection.ArrayList} ChildrenList
  • <static> {String} Collections.Tree.getDescription()
    gets the root Description
    Returns:
    {String}
  • <static> {null} Collections.Tree.getRoot()
    gets the root Node Object
    Returns:
    {null}
  • <static> {String} Collections.Tree.getRootFactName()
    gets the root fact name
    Returns:
    {String}
  • <static> {String} Collections.Tree.getRootFormula()
    gets the root formula provided for explanation
    Returns:
    {String}
  • <static> {String} Collections.Tree.getRootLabel()
    gets the root Label
    Returns:
    {String}
  • <static> {CONSTANT.TreeNodeType} Collections.Tree.getRootType()
    returns whether the root type is Single Value or Multi Valued type.
    Returns:
    {CONSTANT.TreeNodeType}
  • <static> {boolean} Collections.Tree.hasChildren()
    Checks whether the Tree node have children or Not
    Returns:
    {boolean}
  • <static> {null} Collections.Tree.isShowChildren()
    returns whether the children can be shown in presentation layer
    Returns:
    {null}
  • <static> {null} Collections.Tree.isSuccessNode()
    returns whether the children is success Node or Failure node
    Returns:
    {null}
  • <static> {String} Collections.Tree.objType()
    returns teh Object Type as Tree
    Returns:
    {String}
  • <static> {null} Collections.Tree.removeChildren(Item)
    Remove the given children from a node
    Parameters:
    {Collection.Set} Item
    Returns:
    {null}
  • <static> {null} Collections.Tree.setDescription()
    gets the root Description applied
    Parameters:
    {String}
    Returns:
    {null}
  • <static> {null} Collections.Tree.setNodeSuccess()
    set whether the children is success Node or Failure node
    Returns:
    {null}
  • <static> {null} Collections.Tree.setRoot()
    sets the root Node Object
    Parameters:
    {Object}
    Returns:
    {null}
  • <static> {null} Collections.Tree.setRootFactName()
    gets the root fact name
    Parameters:
    {String}
    Returns:
    {null}
  • <static> {null} Collections.Tree.setRootFormula()
    gets the root formula applied for explanation
    Parameters:
    {String}
    Returns:
    {null}
  • <static> {null} Collections.Tree.setRootLabel()
    gets the root Labeling applied
    Parameters:
    {String}
    Returns:
    {null}
  • <static> {null} Collections.Tree.setRootType()
    sets the root type as Single Value or Multi Valued type.
    Parameters:
    {CONSTANT.TreeNodeType}
    Returns:
    {null}
  • <static> {null} Collections.Tree.setShowChildren()
    set whether the children to be shown in presentation layer
    Returns:
    {null}
  • <static> {String} Collections.Tree.toString()
    returns JSON Notation of the items in teh set.
    Returns:
    {String}