TreeNode()

Creates a tree-node object.

Syntax

public TreeNode(String name, String desc, boolean isGen, boolean isExp);
 
public TreeNode(String name, String desc, boolean isGen, boolean isExp, 
    TreeNode[] treeNodes);
 
public TreeNode(String name, String desc, boolean isGen, boolean isExp, 
    TreeNode[] treeNodes, int nodeNature);
 

Parameters

desc
Specifies the description of the node; the value of this parameter initializes the description member variable (description).
isGen
Specifies whether the node is "generatable" (that is, whether the node can be converted to a business object definition); the value of this parameter initializes the isGeneratable member variable (isGeneratable).
isExp
Specifies whether the node is expandable (that is, whether the node is or is not a leaf); the value of this parameter initializes the isExpandable member variable (isExpandable).
name
Specifies the name of the node; the value of this parameter initializes the name member variable (name).
nodeNature
Indicates the nature of the node, as one of the following node-nature constants:
ODKConstant.NODE_NATURE_FILE
 ODKConstant.NODE_NATURE_NORMAL
 
treeNodes
Specifies the fully expanded hierarchy of nodes; the value of this parameter initializes the nodes member variable (nodes).

Return values

A newly instantiated TreeNode object.

Notes

The TreeNode() method provides the following forms to instantiate a tree node:

For more information, see Constructing the tree nodes.

Copyright IBM Corp. 1997, 2004