com.phoenixst.plexus

Interface RootedTree

public interface RootedTree extends OrientedForest, Rooted

An OrientedForest which is restricted to the descendants of a single root node.

The following methods behave as expected:

The getRoot( node ) method will throw a NoSuchNodeException if given a node which is not a descendant of the root node.

The following methods may throw a NoSuchNodeException if given a node which is not a descendant of the root node, depending upon whether or not it is computationally tenable to do so. The behavior of any concrete implementations of these methods should be explicitly documented.

Since: 1.0

Version: $Revision: 1.3 $

Author: Ray A. Conner

Method Summary
booleanisTreeNode(Object node)
Returns true if the specified node is a descendant of the root node.

Method Detail

isTreeNode

public boolean isTreeNode(Object node)
Returns true if the specified node is a descendant of the root node.
See the Plexus project home, hosted by SourceForge.
Copyright B) 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.