An instance of this class can represent a node in a tree.
Each node will have a system generated unique identifier.
It may have a name (which can be non-unique).
It can be linked to a Parent node or be the Root of the tree.
It can have child nodes.
It will have a value Object.
Additionally it can have a map of attributes.
Returns true if the parent node has any more child nodes after the current node.
true if the parent node has any more child nodes after the current node.
A helper routine to print the contents of a node.
Parameters: writer - The writer to which the node contents will be printed. throws: IOException - if any I/O error occurs.
A helper routine to print the contents of a node.
Parameters: writer - The writer to which the node contents will be printed. Parameters: pad - The pad string to be used. Parameters: padIncrement - The increment string to be appended to the pad string at each successive level of child nodes. throws: IOException - if any I/O error occurs.
Adds an attribute. Will replace an existing attribute having the same key.
Parameters: key - The attribute key. Parameters: value - The attribute value. previous value associated with specified key, or null if there was no attribute for key.