package prolog.treeview;

/**
 * implementation of a root node. a root node
 * is the only node knowing the tree where
 * all nodes are contained in.
 */
public class RootNode extends Node
{
	/**
	 * reference to the containing tree
	 */
	protected Tree tree = null;

	/**
	 * default constructor
	 */
	public RootNode()
	{
	}

	/**
	 * returns a reference to the containing tree
	 */
	public Tree getTree()
	{
		return tree;
	}

	/**
	 * sets the containing tree
	 */
	public void setTree( Tree tree )
	{
		this.tree = tree;
	}
}
