Element: treenode.node_name

Type

string

Description

The class node name for the treenode class of treenode. This name enables children (on any number of levels down) of treenode to refer to treenode without knowing how many levels up the hierarchy treenode is.

For example, a top-level node which we will call top may have a class node name of database, i.e. the value of top.node_name is "database". Several levels down, a child node, which we will call kid may wish to refer to its top level node. This can be achieved by the following:

treenode topnode = kid.database

As a result, topnode will point to the same node as top. This value is redefinable via a treenode class name but not via a treenode instance name, e.g. if a treenode "mynode" is of class "database_t", then database_t.node_name can be set, but mynode.node_name may not.